qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 07/10] hw/arm/realview: Move 'mpcore_periphbase' to RealviewM


From: Richard Henderson
Subject: Re: [PATCH 07/10] hw/arm/realview: Move 'mpcore_periphbase' to RealviewMachineClass
Date: Wed, 24 May 2023 12:10:31 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 5/24/23 07:59, Philippe Mathieu-Daudé wrote:
-    int is_mpcore = 0;
+    bool is_mpcore = rmc->mpcore_periphbase != 0;
      bool is_pb = rmc->is_pb;
      uint32_t proc_id = 0;
      uint32_t sys_id;
      ram_addr_t low_ram_size;
      ram_addr_t ram_size = machine->ram_size;
-    hwaddr periphbase = 0;

hwaddr periphbase = rmc->mpcore_periphbase;
bool is_mpcore = periphbase != 0;

would be cleaner and require fewer changes.

Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]