Skip to content

hw/sh4/r2d: Raise amount of RAM from 64 to 192 MB

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13hw/sh4/r2d: Bail out early if user request invalid RAM sizehw/sh4/r2d.c+8 -06 replies
2/13hw/sh4/r2d: Define BOOT_PARAMS_BASEhw/sh4/r2d.c+2 -10 replies
3/13hw/sh4/r2d: Introduce sdram_base and sdram_size variableshw/sh4/r2d.c+9 -60 replies
4/13hw/sh4/r2d: Use memdev allocation for RAMhw/sh4/r2d.c+4 -20 replies
5/13hw/sh4/r2d: Reword SH7750_BCR1 and SH7750_BCR2 initialization commentshw/sh4/r2d.c+6 -40 replies
6/13hw/sh4/r2d: Configure flash (CS#0) as 16-bit accessiblehw/sh4/r2d.c+1 -00 replies
7/13hw/sh4/r2d: Introduce EXT_CS_BASE() macro and use it for SDRAMhw/sh4/r2d.c+4 -30 replies
8/13hw/sh4/r2d: Use EXT_CS_BASE() macro for boot flash devicehw/sh4/r2d.c+2 -10 replies
9/13hw/sh4/r2d: Use EXT_CS_BASE() macro for FPGA devicehw/sh4/r2d.c+2 -10 replies
10/13hw/sh4/r2d: Use EXT_CS_BASE() macro for display controllerhw/sh4/r2d.c+4 -30 replies
11/13hw/sh4/r2d: Use EXT_CS_BASE() macro for pseudo ISA bushw/sh4/r2d.c+3 -20 replies
12/13hw/sh4/r2d: Add 64MB of SDRAM in CS#2hw/sh4/r2d.c+6 -10 replies
13/13hw/sh4/r2d: Add 64MB of SRAM in CS#6hw/sh4/r2d.c+10 -10 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchRob Landley
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13Inspired-by
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH-for-11.0 00/13] hw/sh4/r2d: Raise amount of RAM from 64 to 192 MB

It is possible to add more RAM on the R2D board:
- 1 real 64MB SDRAM
- 1 virtual 64MB SRAM (virtual because back then such SRAM size wouldn't exist).

Memory tree change with this series applied:

    $ diff -uw a b
    --- a  2025-11-24 10:48:58
    +++ b  2025-11-24 10:49:30
    @@ -1,4 +1,4 @@
    -QEMU 10.0.0 monitor - type 'help' for more information
    +QEMU 10.1.91 monitor - type 'help' for more information
     (qemu) info mtree -f
     FlatView #0
      AS "memory", root: system
    @@ -6,7 +6,7 @@
      Root memory region: system
       0000000000000000-0000000000ffffff (prio 0, romd): r2d.flash
       0000000004000000-000000000400003f (prio 0, i/o): r2d-fpga
    -  000000000c000000-000000000fffffff (prio 0, ram): r2d.sdram
    +  0000000008000000-000000000fffffff (prio 0, ram): ram
       0000000010000000-00000000107fffff (prio 0, ram): sm501.local
       0000000013e00000-0000000013e0006b (prio 0, i/o): sm501-system-config
       0000000013e10040-0000000013e10053 (prio 0, i/o): sm501-i2c
    @@ -16,6 +16,7 @@
       0000000013f00000-0000000013f00053 (prio 0, i/o): sm501-2d-engine
       000000001400080c-000000001400080f (prio 0, i/o): ide-mmio.2
       0000000014001000-000000001400101f (prio 0, i/o): ide-mmio.1
    +  0000000018000000-000000001bffffff (prio 0, ram): ram @0000000008000000
       000000001e080000-000000001e080003 (prio 0, i/o): intc @000000001e080000
       000000001e080040-000000001e080043 (prio 0, i/o): intc @000000001e080040
       000000001e080060-000000001e080063 (prio 0, i/o): intc @000000001e080060

Philippe Mathieu-Daudé (13):
hw/sh4/r2d: Bail out early if user request invalid RAM size hw/sh4/r2d: Define BOOT_PARAMS_BASE
hw/sh4/r2d: Introduce sdram_base and sdram_size variables hw/sh4/r2d: Use memdev allocation for RAM
hw/sh4/r2d: Reword SH7750_BCR1 and SH7750_BCR2 initialization comments hw/sh4/r2d: Configure flash (CS#0) as 16-bit accessible hw/sh4/r2d: Introduce EXT_CS_BASE() macro and use it for SDRAM hw/sh4/r2d: Use EXT_CS_BASE() macro for boot flash device hw/sh4/r2d: Use EXT_CS_BASE() macro for FPGA device hw/sh4/r2d: Use EXT_CS_BASE() macro for display controller hw/sh4/r2d: Use EXT_CS_BASE() macro for pseudo ISA bus hw/sh4/r2d: Add 64MB of SDRAM in CS#2
hw/sh4/r2d: Add 64MB of SRAM in CS#6

 hw/sh4/r2d.c | 76 ++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 56 insertions(+), 20 deletions(-)
Signature · 1 line
2.51.0