summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/drcbex64.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/cpu/drcbex64.h')
-rw-r--r--src/emu/cpu/drcbex64.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/cpu/drcbex64.h b/src/emu/cpu/drcbex64.h
index 788ccfa5a66..277046d1df2 100644
--- a/src/emu/cpu/drcbex64.h
+++ b/src/emu/cpu/drcbex64.h
@@ -63,7 +63,7 @@ public:
// construction/destruction
drcbe_x64(drcuml_state &drcuml, device_t &device, drc_cache &cache, UINT32 flags, int modes, int addrbits, int ignorebits);
virtual ~drcbe_x64();
-
+
// required overrides
virtual void reset();
virtual int execute(uml::code_handle &entry);
@@ -96,7 +96,7 @@ private:
be_parameter(const be_parameter &param) : m_type(param.m_type), m_value(param.m_value) { }
be_parameter(UINT64 val) : m_type(PTYPE_IMMEDIATE), m_value(val) { }
be_parameter(drcbe_x64 &drcbe, const uml::parameter &param, UINT32 allowed);
-
+
// creators for types that don't safely default
static inline be_parameter make_ireg(int regnum) { assert(regnum >= 0 && regnum < x64emit::REG_MAX); return be_parameter(PTYPE_INT_REGISTER, regnum); }
static inline be_parameter make_freg(int regnum) { assert(regnum >= 0 && regnum < x64emit::REG_MAX); return be_parameter(PTYPE_FLOAT_REGISTER, regnum); }
@@ -107,7 +107,7 @@ private:
// operators
bool operator==(const be_parameter &rhs) const { return (m_type == rhs.m_type && m_value == rhs.m_value); }
bool operator!=(const be_parameter &rhs) const { return (m_type != rhs.m_type || m_value != rhs.m_value); }
-
+
// getters
be_parameter_type type() const { return m_type; }
UINT64 immediate() const { assert(m_type == PTYPE_IMMEDIATE); return m_value; }
@@ -115,14 +115,14 @@ private:
int freg() const { assert(m_type == PTYPE_FLOAT_REGISTER); assert(m_value >= 0 && m_value < x64emit::REG_MAX); return m_value; }
int vreg() const { assert(m_type == PTYPE_VECTOR_REGISTER); assert(m_value >= 0 && m_value < x64emit::REG_MAX); return m_value; }
void *memory() const { assert(m_type == PTYPE_MEMORY); return reinterpret_cast<void *>(m_value); }
-
+
// type queries
bool is_immediate() const { return (m_type == PTYPE_IMMEDIATE); }
bool is_int_register() const { return (m_type == PTYPE_INT_REGISTER); }
bool is_float_register() const { return (m_type == PTYPE_FLOAT_REGISTER); }
bool is_vector_register() const { return (m_type == PTYPE_VECTOR_REGISTER); }
bool is_memory() const { return (m_type == PTYPE_MEMORY); }
-
+
// other queries
bool is_immediate_value(UINT64 value) const { return (m_type == PTYPE_IMMEDIATE && m_value == value); }
@@ -130,7 +130,7 @@ private:
int select_register(int defreg) const;
int select_register(int defreg, const be_parameter &checkparam) const;
int select_register(int defreg, const be_parameter &checkparam, const be_parameter &checkparam2) const;
-
+
private:
// private constructor
be_parameter(be_parameter_type type, be_parameter_value value) : m_type(type), m_value(value) { }