aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-06-09 16:08:29 -0700
committerAlistair Francis <alistair.francis@wdc.com>2020-06-19 08:24:07 -0700
commit888c9af23ff0fced10a58041e6658e0eb60143cb (patch)
tree7164d7e6d78599949c908ad0eeb37e20e921db9b
parent2761db5fc20943bbd606b6fd49640ac000398de6 (diff)
downloadqemu-888c9af23ff0fced10a58041e6658e0eb60143cb.zip
qemu-888c9af23ff0fced10a58041e6658e0eb60143cb.tar.gz
qemu-888c9af23ff0fced10a58041e6658e0eb60143cb.tar.bz2
riscv/opentitan: Fix the ROM size
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reported-by: Damien Hedde <damien.hedde@greensocs.com>
-rw-r--r--hw/riscv/opentitan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/riscv/opentitan.c b/hw/riscv/opentitan.c
index f6776da..011e4f7 100644
--- a/hw/riscv/opentitan.c
+++ b/hw/riscv/opentitan.c
@@ -25,12 +25,13 @@
#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 },