]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
riscv/opentitan: Fix the ROM size
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 9 Jun 2020 23:08:29 +0000 (16:08 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 19 Jun 2020 15:24:07 +0000 (08:24 -0700)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reported-by: Damien Hedde <damien.hedde@greensocs.com>
hw/riscv/opentitan.c

index f6776da8e958217c42e44be551c3d1f2ce172fa2..011e4f7ee2c140fdb98e00b35a9d5baff902a9e3 100644 (file)
 #include "hw/misc/unimp.h"
 #include "hw/riscv/boot.h"
 #include "exec/address-spaces.h"
+#include "qemu/units.h"
 
 static const struct MemmapEntry {
     hwaddr base;
     hwaddr size;
 } ibex_memmap[] = {
-    [IBEX_ROM] =            {  0x00008000,   0xc000 },
+    [IBEX_ROM] =            {  0x00008000, 16 * KiB },
     [IBEX_RAM] =            {  0x10000000,  0x10000 },
     [IBEX_FLASH] =          {  0x20000000,  0x80000 },
     [IBEX_UART] =           {  0x40000000,  0x10000 },