hw/riscv: sifive_e: Correct debug block size
authorBin Meng <bmeng.cn@gmail.com>
Thu, 16 Jul 2020 09:30:56 +0000 (02:30 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 22 Jul 2020 16:39:46 +0000 (09:39 -0700)
Currently the debug region size is set to 0x100, but according to
FE310-G000 and FE310-G002 manuals:

  FE310-G000: 0x100 - 0xFFF
  FE310-G002: 0x0   - 0xFFF

Change the size to 0x1000 that applies to both.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <1594891856-15474-1-git-send-email-bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/sifive_e.c

index 7bb97b463dfcd9af14b45828c14078bdd63b02dd..c8b060486a747bffeef90d58e648bf9a3910739b 100644 (file)
@@ -54,7 +54,7 @@ static const struct MemmapEntry {
     hwaddr base;
     hwaddr size;
 } sifive_e_memmap[] = {
-    [SIFIVE_E_DEBUG] =    {        0x0,      0x100 },
+    [SIFIVE_E_DEBUG] =    {        0x0,     0x1000 },
     [SIFIVE_E_MROM] =     {     0x1000,     0x2000 },
     [SIFIVE_E_OTP] =      {    0x20000,     0x2000 },
     [SIFIVE_E_CLINT] =    {  0x2000000,    0x10000 },