summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2008-11-23 16:04:49 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2008-11-23 16:04:49 +0000
commitf778678e3dd4fa527734c56875c2f081e59370ff (patch)
treef3f415026b43b5128203c85c8587a3bbd6f09ffb /src
parentfeaae49a0d3749e35a1fe905fd99e2d895d7e12b (diff)
Removed unused global tokens.
Diffstat (limited to 'src')
-rw-r--r--src/emu/cpu/h83002/h8_16.c9
-rw-r--r--src/emu/cpu/h83002/h8_8.c5
-rw-r--r--src/emu/cpu/m37710/m37710.c15
3 files changed, 0 insertions, 29 deletions
diff --git a/src/emu/cpu/h83002/h8_16.c b/src/emu/cpu/h83002/h8_16.c
index 9892ab06f20..82179f5876a 100644
--- a/src/emu/cpu/h83002/h8_16.c
+++ b/src/emu/cpu/h83002/h8_16.c
@@ -46,7 +46,6 @@ INLINE void h8_mem_write32(h83xx_state *h8, offs_t address, UINT32 data)
memory_write_word_16be(h8->program, address + 2, data);
}
-static void *token;
static void h8_check_irqs(h83xx_state *h8);
/* implementation */
@@ -207,8 +206,6 @@ static CPU_INIT(h8)
{
h83xx_state *h8 = device->token;
- token = device->token;
-
h8->h8iflag = 1;
h8->irq_cb = irqcallback;
h8->device = device;
@@ -240,8 +237,6 @@ static CPU_INIT(h8_3007)
{
h83xx_state *h8 = device->token;
- token = device->token;
-
CPU_INIT_CALL(h8);
h8_3007_itu_init(h8);
}
@@ -371,10 +366,6 @@ static CPU_GET_CONTEXT( h8 )
static CPU_SET_CONTEXT( h8 )
{
- if (src)
- {
- token = src;
- }
}
static CPU_SET_INFO( h8 )
diff --git a/src/emu/cpu/h83002/h8_8.c b/src/emu/cpu/h83002/h8_8.c
index 35d46e38027..aa3345f637b 100644
--- a/src/emu/cpu/h83002/h8_8.c
+++ b/src/emu/cpu/h83002/h8_8.c
@@ -62,7 +62,6 @@ INLINE void h8_mem_write32(h83xx_state *h8, offs_t address, UINT32 data)
memory_write_byte(h8->program, address+3, data);
}
-static void *token;
static void h8_check_irqs(h83xx_state *h8);
/* implementation */
@@ -358,10 +357,6 @@ static CPU_GET_CONTEXT( h8 )
static CPU_SET_CONTEXT( h8 )
{
- if (src)
- {
- token = src;
- }
}
static CPU_SET_INFO( h8 )
diff --git a/src/emu/cpu/m37710/m37710.c b/src/emu/cpu/m37710/m37710.c
index b01edbfb705..ac1b135387a 100644
--- a/src/emu/cpu/m37710/m37710.c
+++ b/src/emu/cpu/m37710/m37710.c
@@ -58,7 +58,6 @@
#define M37710_DEBUG (0) // enables verbose logging for peripherals, etc.
static void m37710_set_irq_line(m37710i_cpu_struct *m37710i_cpu, int line, int state);
-void *token;
/* interrupt control mapping */
@@ -876,19 +875,7 @@ static CPU_GET_CONTEXT( m37710 )
/* Set the current CPU context */
static CPU_SET_CONTEXT( m37710 )
{
- if (src)
- {
- token = src;
- }
-}
-
-/* Get the current Program Counter */
-#ifdef UNUSED_FUNCTION
-unsigned m37710_get_pc(void)
-{
- return REG_PC;
}
-#endif
/* Set the Program Counter */
static void m37710_set_pc(m37710i_cpu_struct *m37710i_cpu, unsigned val)
@@ -970,8 +957,6 @@ static CPU_INIT( m37710 )
{
m37710i_cpu_struct *m37710i_cpu = device->token;
- token = device->token;
-
memset(m37710i_cpu, 0, sizeof(m37710i_cpu));
INT_ACK = irqcallback;