diff options
Diffstat (limited to 'src/devices/cpu/mips/r3000.h')
-rw-r--r-- | src/devices/cpu/mips/r3000.h | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/src/devices/cpu/mips/r3000.h b/src/devices/cpu/mips/r3000.h index a7541eaab85..138e6fc2a6f 100644 --- a/src/devices/cpu/mips/r3000.h +++ b/src/devices/cpu/mips/r3000.h @@ -77,7 +77,7 @@ protected: }; // construction/destruction - r3000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, chip_type chiptype, const char *shortname, const char *source); + r3000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, chip_type chiptype, const char *shortname, const char *source); virtual ~r3000_device(); public: @@ -114,9 +114,9 @@ protected: virtual void device_post_load() override; // device_execute_interface overrides - virtual UINT32 execute_min_cycles() const override; - virtual UINT32 execute_max_cycles() const override; - virtual UINT32 execute_input_lines() const override; + virtual uint32_t execute_min_cycles() const override; + virtual uint32_t execute_max_cycles() const override; + virtual uint32_t execute_input_lines() const override; virtual void execute_run() override; virtual void execute_set_input(int inputnum, int state) override; @@ -129,42 +129,42 @@ protected: virtual void state_string_export(const device_state_entry &entry, std::string &str) const override; // device_disasm_interface overrides - virtual UINT32 disasm_min_opcode_bytes() const override; - virtual UINT32 disasm_max_opcode_bytes() const override; - virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options) override; + virtual uint32_t disasm_min_opcode_bytes() const override; + virtual uint32_t disasm_max_opcode_bytes() const override; + virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options) override; // memory accessors struct r3000_data_accessors { - UINT8 (r3000_device::*m_read_byte)(offs_t byteaddress); - UINT16 (r3000_device::*m_read_word)(offs_t byteaddress); - UINT32 (r3000_device::*m_read_dword)(offs_t byteaddress); - void (r3000_device::*m_write_byte)(offs_t byteaddress, UINT8 data); - void (r3000_device::*m_write_word)(offs_t byteaddress, UINT16 data); - void (r3000_device::*m_write_dword)(offs_t byteaddress, UINT32 data); + uint8_t (r3000_device::*m_read_byte)(offs_t byteaddress); + uint16_t (r3000_device::*m_read_word)(offs_t byteaddress); + uint32_t (r3000_device::*m_read_dword)(offs_t byteaddress); + void (r3000_device::*m_write_byte)(offs_t byteaddress, uint8_t data); + void (r3000_device::*m_write_word)(offs_t byteaddress, uint16_t data); + void (r3000_device::*m_write_dword)(offs_t byteaddress, uint32_t data); }; - UINT32 readop(offs_t pc); - UINT8 readmem(offs_t offset); - UINT16 readmem_word(offs_t offset); - UINT32 readmem_dword(offs_t offset); - void writemem(offs_t offset, UINT8 data); - void writemem_word(offs_t offset, UINT16 data); - void writemem_dword(offs_t offset, UINT32 data); - - UINT8 readcache_be(offs_t offset); - UINT16 readcache_be_word(offs_t offset); - UINT32 readcache_be_dword(offs_t offset); - void writecache_be(offs_t offset, UINT8 data); - void writecache_be_word(offs_t offset, UINT16 data); - void writecache_be_dword(offs_t offset, UINT32 data); - - UINT8 readcache_le(offs_t offset); - UINT16 readcache_le_word(offs_t offset); - UINT32 readcache_le_dword(offs_t offset); - void writecache_le(offs_t offset, UINT8 data); - void writecache_le_word(offs_t offset, UINT16 data); - void writecache_le_dword(offs_t offset, UINT32 data); + uint32_t readop(offs_t pc); + uint8_t readmem(offs_t offset); + uint16_t readmem_word(offs_t offset); + uint32_t readmem_dword(offs_t offset); + void writemem(offs_t offset, uint8_t data); + void writemem_word(offs_t offset, uint16_t data); + void writemem_dword(offs_t offset, uint32_t data); + + uint8_t readcache_be(offs_t offset); + uint16_t readcache_be_word(offs_t offset); + uint32_t readcache_be_dword(offs_t offset); + void writecache_be(offs_t offset, uint8_t data); + void writecache_be_word(offs_t offset, uint16_t data); + void writecache_be_dword(offs_t offset, uint32_t data); + + uint8_t readcache_le(offs_t offset); + uint16_t readcache_le_word(offs_t offset); + uint32_t readcache_le_dword(offs_t offset); + void writecache_le(offs_t offset, uint8_t data); + void writecache_le_word(offs_t offset, uint16_t data); + void writecache_le_dword(offs_t offset, uint32_t data); // interrupts void generate_exception(int exception); @@ -173,28 +173,28 @@ protected: void invalid_instruction(); // instructions - UINT32 get_cop0_reg(int idx); - void set_cop0_reg(int idx, UINT32 val); - UINT32 get_cop0_creg(int idx); - void set_cop0_creg(int idx, UINT32 val); + uint32_t get_cop0_reg(int idx); + void set_cop0_reg(int idx, uint32_t val); + uint32_t get_cop0_creg(int idx); + void set_cop0_creg(int idx, uint32_t val); void handle_cop0(); - UINT32 get_cop1_reg(int idx); - void set_cop1_reg(int idx, UINT32 val); - UINT32 get_cop1_creg(int idx); - void set_cop1_creg(int idx, UINT32 val); + uint32_t get_cop1_reg(int idx); + void set_cop1_reg(int idx, uint32_t val); + uint32_t get_cop1_creg(int idx); + void set_cop1_creg(int idx, uint32_t val); void handle_cop1(); - UINT32 get_cop2_reg(int idx); - void set_cop2_reg(int idx, UINT32 val); - UINT32 get_cop2_creg(int idx); - void set_cop2_creg(int idx, UINT32 val); + uint32_t get_cop2_reg(int idx); + void set_cop2_reg(int idx, uint32_t val); + uint32_t get_cop2_creg(int idx); + void set_cop2_creg(int idx, uint32_t val); void handle_cop2(); - UINT32 get_cop3_reg(int idx); - void set_cop3_reg(int idx, UINT32 val); - UINT32 get_cop3_creg(int idx); - void set_cop3_creg(int idx, UINT32 val); + uint32_t get_cop3_reg(int idx); + void set_cop3_reg(int idx, uint32_t val); + uint32_t get_cop3_creg(int idx); + void set_cop3_creg(int idx, uint32_t val); void handle_cop3(); // complex opcodes @@ -220,19 +220,19 @@ protected: endianness_t m_endianness; // core registers - UINT32 m_pc; - UINT32 m_nextpc; - UINT32 m_hi; - UINT32 m_lo; - UINT32 m_r[32]; + uint32_t m_pc; + uint32_t m_nextpc; + uint32_t m_hi; + uint32_t m_lo; + uint32_t m_r[32]; // COP registers - UINT32 m_cpr[4][32]; - UINT32 m_ccr[4][32]; + uint32_t m_cpr[4][32]; + uint32_t m_ccr[4][32]; // internal stuff - UINT32 m_ppc; - UINT32 m_op; + uint32_t m_ppc; + uint32_t m_op; int m_icount; int m_interrupt_cycles; @@ -248,9 +248,9 @@ protected: r3000_data_accessors m_cache_hand; // cache memory - UINT32 * m_cache; - std::vector<UINT32> m_icache; - std::vector<UINT32> m_dcache; + uint32_t * m_cache; + std::vector<uint32_t> m_icache; + std::vector<uint32_t> m_dcache; size_t m_cache_size; size_t m_icache_size; size_t m_dcache_size; @@ -268,7 +268,7 @@ protected: class r3041_device : public r3000_device { public: - r3041_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + r3041_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; @@ -277,7 +277,7 @@ public: class r3051_device : public r3000_device { public: - r3051_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + r3051_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; @@ -286,7 +286,7 @@ public: class r3052_device : public r3000_device { public: - r3052_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + r3052_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; @@ -295,7 +295,7 @@ public: class r3071_device : public r3000_device { public: - r3071_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + r3071_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; @@ -304,7 +304,7 @@ public: class r3081_device : public r3000_device { public: - r3081_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + r3081_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); }; |