mirror of
https://github.com/holub/mame
synced 2025-05-23 22:20:01 +03:00
Removed unused global tokens.
This commit is contained in:
parent
feaae49a0d
commit
f778678e3d
@ -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 )
|
||||
|
@ -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 )
|
||||
|
@ -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,20 +875,8 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user