diff options
author | 2011-03-27 07:37:24 +0000 | |
---|---|---|
committer | 2011-03-27 07:37:24 +0000 | |
commit | 202d7680a44bec9fa1016e8ba6eeaaba51ef15ab (patch) | |
tree | 6021eb4c3d7324779eaeeab30875f68d42ea2348 /src/emu/cpu/vtlb.c | |
parent | 382e3998b1ca12e6af774cc2652ae515f526ff44 (diff) |
Created new enum type address_spacenum for specifying an address
space by index. Update functions and methods that accepted an
address space index to take an address_spacenum instead. Note that
this means you can't use a raw integer in ADDRESS_SPACE macros, so
instead of 0 use the enumerated AS_0.
Standardized the project on the shortened constants AS_* over the
older ADDRESS_SPACE_*. Removed the latter to prevent confusion.
Also centralized the location of these definitions to memory.h.
Diffstat (limited to 'src/emu/cpu/vtlb.c')
-rw-r--r-- | src/emu/cpu/vtlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/cpu/vtlb.c b/src/emu/cpu/vtlb.c index 2c3a1fd9099..80a5b9109f7 100644 --- a/src/emu/cpu/vtlb.c +++ b/src/emu/cpu/vtlb.c @@ -31,7 +31,7 @@ struct _vtlb_state { cpu_device * cpudevice; /* CPU device */ - int space; /* address space */ + address_spacenum space; /* address space */ int dynamic; /* number of dynamic entries */ int fixed; /* number of fixed entries */ int dynindex; /* index of next dynamic entry */ @@ -54,7 +54,7 @@ struct _vtlb_state given CPU -------------------------------------------------*/ -vtlb_state *vtlb_alloc(device_t *cpu, int space, int fixed_entries, int dynamic_entries) +vtlb_state *vtlb_alloc(device_t *cpu, address_spacenum space, int fixed_entries, int dynamic_entries) { vtlb_state *vtlb; |