qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] hw/mips/jazz: Map the UART devices unconditionally


From: Mark Cave-Ayland
Subject: Re: [PATCH] hw/mips/jazz: Map the UART devices unconditionally
Date: Sat, 3 Jul 2021 06:20:40 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 01/07/2021 22:21, Philippe Mathieu-Daudé wrote:

On 6/29/21 7:37 AM, Philippe Mathieu-Daudé wrote:
When using the Magnum ARC firmware we can see accesses to the
UART1 beeing rejected, because the device is not mapped:

   $ qemu-system-mips64el -M magnum -d guest_errors,unimp -bios NTPROM.RAW
   Invalid access at addr 0x80007004, size 1, region '(null)', reason: rejected
   Invalid access at addr 0x80007001, size 1, region '(null)', reason: rejected
   Invalid access at addr 0x80007002, size 1, region '(null)', reason: rejected
   Invalid access at addr 0x80007003, size 1, region '(null)', reason: rejected
   Invalid access at addr 0x80007004, size 1, region '(null)', reason: rejected

Since both UARTs are present (soldered on the board) regardless there
are character devices connected, map them unconditionally.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
  hw/mips/jazz.c | 16 ++++++----------
  1 file changed, 6 insertions(+), 10 deletions(-)

Patch queued to mips-next (with Peter's corrections applied).

Looks good to me. For future reference serial_mm_init() was another candidate on my list of init functions that could be replaced with qdev at some point...


ATB,

Mark.



reply via email to

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