summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu
diff options
context:
space:
mode:
author ted green <tedgreen99@inbox.com>2015-05-23 11:47:28 -0600
committer ted green <tedgreen99@inbox.com>2015-05-23 11:49:40 -0600
commit71afdc97581e2601452f7bfa8e67b18ef23af8ed (patch)
treea370da0cd37c1f861ccc07a48a987d6305802cc7 /src/emu/cpu
parent7b886584dc0a658164f35d691e40d64e28160e61 (diff)
mips3 -- Added routine for clearing fastram region so that dynamic ram allocation can be mapped to fastram.
atahle -- Added clear cache command. iteagle -- Re-arrange inputs for different games. voodoo_pci -- Add pre-fetchable flag to BAR. iteagle_fpga -- Added memory for eagle1 boards and map gun input. vrc4373 -- Split memory space mapping routines for CPU and PCI spaces and added fastram for CPU.
Diffstat (limited to 'src/emu/cpu')
-rw-r--r--src/emu/cpu/mips/mips3.h2
-rw-r--r--src/emu/cpu/mips/mips3drc.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/src/emu/cpu/mips/mips3.h b/src/emu/cpu/mips/mips3.h
index e527b4715b4..f0b860619ff 100644
--- a/src/emu/cpu/mips/mips3.h
+++ b/src/emu/cpu/mips/mips3.h
@@ -297,7 +297,7 @@ public:
TIMER_CALLBACK_MEMBER(compare_int_callback);
void add_fastram(offs_t start, offs_t end, UINT8 readonly, void *base);
-
+ void clear_fastram(UINT32 select_start);
void mips3drc_set_options(UINT32 options);
void mips3drc_add_hotspot(offs_t pc, UINT32 opcode, UINT32 cycles);
diff --git a/src/emu/cpu/mips/mips3drc.c b/src/emu/cpu/mips/mips3drc.c
index c1ade211c67..c448e7b84fe 100644
--- a/src/emu/cpu/mips/mips3drc.c
+++ b/src/emu/cpu/mips/mips3drc.c
@@ -154,6 +154,20 @@ void mips3_device::mips3drc_set_options(UINT32 options)
m_drcoptions = options;
}
+/*-------------------------------------------------
+ mips3drc_clears_fastram - clears fastram
+ region starting at index select_start
+-------------------------------------------------*/
+void mips3_device::clear_fastram(UINT32 select_start)
+{
+ for (int i=select_start; i<MIPS3_MAX_FASTRAM; i++) {
+ m_fastram[i].start = 0;
+ m_fastram[i].end = 0;
+ m_fastram[i].readonly = false;
+ m_fastram[i].base = NULL;
+ }
+ m_fastram_select=select_start;
+}
/*-------------------------------------------------
mips3drc_add_fastram - add a new fastram