Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-10 Thread Mark Cave-Ayland
On 09/03/2021 21:54, Philippe Mathieu-Daudé wrote: +Peter/Mark/Edgar for SoC modelling On 3/9/21 10:39 AM, Philippe Mathieu-Daudé wrote: Hi Peter, On 3/9/21 12:40 AM, Peter Xu wrote:> On Sat, Mar 06, 2021 at 12:54:13AM +0100, Philippe Mathieu-Daudé wrote: @@ -3188,14 +3188,15 @@ void

Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-10 Thread Peter Xu
On Wed, Mar 10, 2021 at 08:09:59PM +0100, Philippe Mathieu-Daudé wrote: > On 3/10/21 6:06 PM, Peter Xu wrote: > > Phil, > > > > On Tue, Mar 09, 2021 at 10:54:18PM +0100, Philippe Mathieu-Daudé wrote: > >> +Peter/Mark/Edgar for SoC modelling > >> > >> On 3/9/21 10:39 AM, Philippe Mathieu-Daudé

Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-10 Thread Philippe Mathieu-Daudé
On 3/10/21 6:06 PM, Peter Xu wrote: > Phil, > > On Tue, Mar 09, 2021 at 10:54:18PM +0100, Philippe Mathieu-Daudé wrote: >> +Peter/Mark/Edgar for SoC modelling >> >> On 3/9/21 10:39 AM, Philippe Mathieu-Daudé wrote: >>> Hi Peter, >>> >>> On 3/9/21 12:40 AM, Peter Xu wrote:> On Sat, Mar 06, 2021 at

Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-10 Thread Peter Xu
Phil, On Tue, Mar 09, 2021 at 10:54:18PM +0100, Philippe Mathieu-Daudé wrote: > +Peter/Mark/Edgar for SoC modelling > > On 3/9/21 10:39 AM, Philippe Mathieu-Daudé wrote: > > Hi Peter, > > > > On 3/9/21 12:40 AM, Peter Xu wrote:> On Sat, Mar 06, 2021 at 12:54:13AM > > +0100, Philippe

Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-09 Thread Philippe Mathieu-Daudé
+Peter/Mark/Edgar for SoC modelling On 3/9/21 10:39 AM, Philippe Mathieu-Daudé wrote: > Hi Peter, > > On 3/9/21 12:40 AM, Peter Xu wrote:> On Sat, Mar 06, 2021 at 12:54:13AM > +0100, Philippe Mathieu-Daudé wrote: >>> @@ -3188,14 +3188,15 @@ void mtree_info(bool flatview, bool dispatch_tree, >>>

Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-09 Thread Philippe Mathieu-Daudé
Hi Peter, On 3/9/21 12:40 AM, Peter Xu wrote:> On Sat, Mar 06, 2021 at 12:54:13AM +0100, Philippe Mathieu-Daudé wrote: >> @@ -3188,14 +3188,15 @@ void mtree_info(bool flatview, bool dispatch_tree, >> bool owner, bool disabled) >> >> QTAILQ_FOREACH(as, _spaces, address_spaces_link) { >>

Re: [PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-08 Thread Peter Xu
Phil, On Sat, Mar 06, 2021 at 12:54:13AM +0100, Philippe Mathieu-Daudé wrote: > @@ -3188,14 +3188,15 @@ void mtree_info(bool flatview, bool dispatch_tree, > bool owner, bool disabled) > > QTAILQ_FOREACH(as, _spaces, address_spaces_link) { > qemu_printf("address-space: %s\n",

[PATCH 2/3] memory: Provide 'base address' argument to mtree_print_mr()

2021-03-05 Thread Philippe Mathieu-Daudé
Currently AdressSpace are display in 'info mtree' based on the physical address of their first MemoryRegion. This is rather confusing. Provide a 'base' address argument to mtree_print_mr() and use it in mtree_info() to display AdressSpace always based at address 0. Display behavior of