OSDN Git Service

hw/hppa/dino: Do not accept accesses to registers 0x818 and 0x82c
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 18 Feb 2020 06:33:55 +0000 (07:33 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Feb 2020 19:22:10 +0000 (11:22 -0800)
Register 0x818 is documented as 'undefined', and register
0x82c is not documented. Refuse their access.

Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200218063355.18577-5-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/hppa/dino.c

index be799aa..2b1b38c 100644 (file)
@@ -181,7 +181,9 @@ static bool dino_chip_mem_valid(void *opaque, hwaddr addr,
     case DINO_IO_ADDR_EN:
     case DINO_PCI_IO_DATA:
     case DINO_TOC_ADDR:
-    case DINO_GMASK ... DINO_TLTIM:
+    case DINO_GMASK ... DINO_PCISTS:
+    case DINO_MLTIM ... DINO_PCIWOR:
+    case DINO_TLTIM:
         ret = true;
         break;
     case DINO_PCI_IO_DATA + 2: