summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/drcuml.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/drcuml.h')
-rw-r--r--src/devices/cpu/drcuml.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/devices/cpu/drcuml.h b/src/devices/cpu/drcuml.h
index 5a93b132752..0d90c9412aa 100644
--- a/src/devices/cpu/drcuml.h
+++ b/src/devices/cpu/drcuml.h
@@ -37,11 +37,11 @@ class drcuml_state;
union drcuml_ireg
{
#ifdef LSB_FIRST
- struct { UINT32 l,h; } w; // 32-bit low, high parts of the register
+ struct { uint32_t l,h; } w; // 32-bit low, high parts of the register
#else
- struct { UINT32 h,l; } w; // 32-bit low, high parts of the register
+ struct { uint32_t h,l; } w; // 32-bit low, high parts of the register
#endif
- UINT64 d; // 64-bit full register
+ uint64_t d; // 64-bit full register
};
@@ -62,17 +62,17 @@ struct drcuml_machine_state
{
drcuml_ireg r[uml::REG_I_COUNT]; // integer registers
drcuml_freg f[uml::REG_F_COUNT]; // floating-point registers
- UINT32 exp; // exception parameter register
- UINT8 fmod; // fmod (floating-point mode) register
- UINT8 flags; // flags state
+ uint32_t exp; // exception parameter register
+ uint8_t fmod; // fmod (floating-point mode) register
+ uint8_t flags; // flags state
};
// hints and information about the back-end
struct drcbe_info
{
- UINT8 direct_iregs; // number of direct-mapped integer registers
- UINT8 direct_fregs; // number of direct-mapped floating point registers
+ uint8_t direct_iregs; // number of direct-mapped integer registers
+ uint8_t direct_fregs; // number of direct-mapped floating point registers
};
@@ -83,13 +83,13 @@ class drcuml_block
public:
// construction/destruction
- drcuml_block(drcuml_state &drcuml, UINT32 maxinst);
+ drcuml_block(drcuml_state &drcuml, uint32_t maxinst);
~drcuml_block();
// getters
drcuml_block *next() const { return m_next; }
bool inuse() const { return m_inuse; }
- UINT32 maxinst() const { return m_maxinst; }
+ uint32_t maxinst() const { return m_maxinst; }
// code generation
void begin();
@@ -116,8 +116,8 @@ private:
// internal state
drcuml_state & m_drcuml; // pointer back to the owning UML
drcuml_block * m_next; // pointer to next block
- UINT32 m_nextinst; // next instruction to fill in the cache
- UINT32 m_maxinst; // maximum number of instructions
+ uint32_t m_nextinst; // next instruction to fill in the cache
+ uint32_t m_maxinst; // maximum number of instructions
std::vector<uml::instruction> m_inst; // pointer to the instruction list
bool m_inuse; // this block is in use
};
@@ -134,8 +134,8 @@ public:
// required overrides
virtual void reset() = 0;
virtual int execute(uml::code_handle &entry) = 0;
- virtual void generate(drcuml_block &block, const uml::instruction *instlist, UINT32 numinst) = 0;
- virtual bool hash_exists(UINT32 mode, UINT32 pc) = 0;
+ virtual void generate(drcuml_block &block, const uml::instruction *instlist, uint32_t numinst) = 0;
+ virtual bool hash_exists(uint32_t mode, uint32_t pc) = 0;
virtual void get_info(drcbe_info &info) = 0;
virtual bool logging() const { return false; }
@@ -155,7 +155,7 @@ class drcuml_state
{
public:
// construction/destruction
- drcuml_state(device_t &device, drc_cache &cache, UINT32 flags, int modes, int addrbits, int ignorebits);
+ drcuml_state(device_t &device, drc_cache &cache, uint32_t flags, int modes, int addrbits, int ignorebits);
~drcuml_state();
// getters
@@ -167,19 +167,19 @@ public:
int execute(uml::code_handle &entry) { return m_beintf.execute(entry); }
// code generation
- drcuml_block *begin_block(UINT32 maxinst);
+ drcuml_block *begin_block(uint32_t maxinst);
// back-end interface
void get_backend_info(drcbe_info &info) { m_beintf.get_info(info); }
- bool hash_exists(UINT32 mode, UINT32 pc) { return m_beintf.hash_exists(mode, pc); }
- void generate(drcuml_block &block, uml::instruction *instructions, UINT32 count) { m_beintf.generate(block, instructions, count); }
+ bool hash_exists(uint32_t mode, uint32_t pc) { return m_beintf.hash_exists(mode, pc); }
+ void generate(drcuml_block &block, uml::instruction *instructions, uint32_t count) { m_beintf.generate(block, instructions, count); }
// handle management
uml::code_handle *handle_alloc(const char *name);
// symbol management
- void symbol_add(void *base, UINT32 length, const char *name);
- const char *symbol_find(void *base, UINT32 *offset = nullptr);
+ void symbol_add(void *base, uint32_t length, const char *name);
+ const char *symbol_find(void *base, uint32_t *offset = nullptr);
// logging
bool logging() const { return (m_umllog != nullptr); }
@@ -195,7 +195,7 @@ private:
friend class simple_list<symbol>;
// construction/destruction
- symbol(void *base, UINT32 length, const char *name)
+ symbol(void *base, uint32_t length, const char *name)
: m_next(nullptr),
m_base(drccodeptr(base)),
m_length(length),
@@ -209,7 +209,7 @@ private:
// internal state
symbol * m_next; // link to the next symbol
drccodeptr m_base; // base of the symbol
- UINT32 m_length; // length of the region covered
+ uint32_t m_length; // length of the region covered
std::string m_name; // name of the symbol
};