memory: Split mtree_info() as mtree_info_flatview() + mtree_info_as()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Wed, 1 Sep 2021 15:45:48 +0000 (17:45 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 18 Jan 2022 09:45:35 +0000 (10:45 +0100)
commit670c0780e7a12013f06b7702e37d8434274cc018
tree9cceb4615a2d33afa5bc4af716bcdb98f5695f36
parent1a59bdba4bf476c242fbf88283a71427c0160f06
memory: Split mtree_info() as mtree_info_flatview() + mtree_info_as()

While mtree_info() handles both ASes and flatviews cases,
the two cases share basically no code. Split mtree_info()
as mtree_info_flatview() + mtree_info_as() to simplify.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210904231101.1071929-2-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
softmmu/memory.c