summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/dsp56k
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-15 22:30:30 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-15 22:30:30 +0000
commitcff1004165c7026532c4809099d4ebca31643cd5 (patch)
tree745dd217242b32aa6421431ed8bc6271a699f756 /src/emu/cpu/dsp56k
parent000f9d27eddb3edde72bc289d9d0a9ed678f6fbb (diff)
Pass 2 of struct modernization.
Diffstat (limited to 'src/emu/cpu/dsp56k')
-rw-r--r--src/emu/cpu/dsp56k/dsp56k.h20
-rw-r--r--src/emu/cpu/dsp56k/dsp56pcu.c4
2 files changed, 12 insertions, 12 deletions
diff --git a/src/emu/cpu/dsp56k/dsp56k.h b/src/emu/cpu/dsp56k/dsp56k.h
index 16f768d8a89..5a7715a5d65 100644
--- a/src/emu/cpu/dsp56k/dsp56k.h
+++ b/src/emu/cpu/dsp56k/dsp56k.h
@@ -30,7 +30,7 @@ DECLARE_LEGACY_CPU_DEVICE(DSP56156, dsp56k);
STRUCTURES & TYPEDEFS
***************************************************************************/
// 5-4 Host Interface
-typedef struct
+struct dsp56k_host_interface
{
// **** Dsp56k side **** //
// Host Control Register
@@ -62,10 +62,10 @@ typedef struct
// HACK - Host interface bootstrap write offset
UINT16 bootstrap_offset;
-} dsp56k_host_interface;
+};
// 1-9 ALU
-typedef struct
+struct dsp56k_data_alu
{
// Four 16-bit input registers (can be accessed as 2 32-bit registers)
PAIR x;
@@ -79,10 +79,10 @@ typedef struct
// One data bus shifter/limiter
// A parallel, single cycle, non-pipelined Multiply-Accumulator (MAC) unit
// Basics
-} dsp56k_data_alu;
+};
// 1-10 Address Generation Unit (AGU)
-typedef struct
+struct dsp56k_agu
{
// Four address registers
UINT16 r0;
@@ -109,10 +109,10 @@ typedef struct
// UINT8 status;
// Basics
-} dsp56k_agu;
+};
// 1-11 Program Control Unit (PCU)
-typedef struct
+struct dsp56k_pcu
{
// Program Counter
UINT16 pc;
@@ -146,10 +146,10 @@ typedef struct
// Other PCU internals
UINT16 reset_vector;
-} dsp56k_pcu;
+};
// 1-8 The dsp56156 CORE
-typedef struct
+struct dsp56k_core
{
// PROGRAM CONTROLLER
dsp56k_pcu PCU;
@@ -197,7 +197,7 @@ typedef struct
UINT16 peripheral_ram[0x40];
UINT16 program_ram[0x800];
-} dsp56k_core;
+};
INLINE dsp56k_core *get_safe_token(device_t *device)
diff --git a/src/emu/cpu/dsp56k/dsp56pcu.c b/src/emu/cpu/dsp56k/dsp56pcu.c
index 2460beb056c..cde4d69924e 100644
--- a/src/emu/cpu/dsp56k/dsp56pcu.c
+++ b/src/emu/cpu/dsp56k/dsp56pcu.c
@@ -236,11 +236,11 @@ void pcu_reset(dsp56k_core* cpustate)
/***************************************************************************
INTERRUPT HANDLING
***************************************************************************/
-typedef struct
+struct dsp56k_irq_data
{
UINT16 irq_vector;
char irq_source[128];
-} dsp56k_irq_data;
+};
dsp56k_irq_data dsp56k_interrupt_sources[32];