From 0a26d755c92ce4ebe49155d6831b31d3e142d13f Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Wed, 25 Jan 2023 15:58:40 -0800 Subject: [PATCH] use cache-through addresses --- common.mk | 2 +- sh2.lds | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/common.mk b/common.mk index afe9b63..76faa7a 100644 --- a/common.mk +++ b/common.mk @@ -98,7 +98,7 @@ sys_ip.elf: $(SYS_IP_OBJ) @echo " INDEX 01 00:00:00" >> $@ clean: - rm -f *.iso *.o *.bin *.elf + rm -f *.iso *.o *.bin *.elf *.cue .SUFFIXES: .INTERMEDIATE: diff --git a/sh2.lds b/sh2.lds index 46e68bc..d7b2fac 100644 --- a/sh2.lds +++ b/sh2.lds @@ -13,6 +13,7 @@ SECTIONS { *(.text.start) *(.text*) + *(.text.*) } > work_ram_h .data ALIGN(4) : SUBALIGN(4) @@ -34,11 +35,11 @@ SECTIONS __bss_link_end = ADDR(.bss) + SIZEOF(.bss); } -smpc = 0x00100000; -cdb = 0x05890000; -scsp = 0x05A00000; -vdp1 = 0x05C00000; -vdp2 = 0x05E00000; -scu = 0x05FE0000; -sh2_vec = 0x06000000; +smpc = 0x20100000; +cdb = 0x25890000; +scsp = 0x25A00000; +vdp1 = 0x25C00000; +vdp2 = 0x25E00000; +scu = 0x25FE0000; +sh2_vec = 0x26000000; sh2 = 0xfffffe00;