diff options
Diffstat (limited to 'src/devices/cpu/ns32000')
-rw-r--r-- | src/devices/cpu/ns32000/ns32000.cpp | 10 | ||||
-rw-r--r-- | src/devices/cpu/ns32000/ns32000.h | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/devices/cpu/ns32000/ns32000.cpp b/src/devices/cpu/ns32000/ns32000.cpp index d3f04bbd5d3..f28b7144532 100644 --- a/src/devices/cpu/ns32000/ns32000.cpp +++ b/src/devices/cpu/ns32000/ns32000.cpp @@ -96,7 +96,7 @@ static const u32 size_mask[] = { 0x000000ffU, 0x0000ffffU, 0x00000000U, 0xffffff #define SP ((m_psr & PSR_S) ? m_sp1 : m_sp0) -template <int Width>ns32000_device<Width>::ns32000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, int databits, int addrbits) +template <int Width>ns32000_device<Width>::ns32000_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock, int databits, int addrbits) : cpu_device(mconfig, type, tag, owner, clock) , m_address_mask(0xffffffffU >> (32 - addrbits)) , m_program_config("program", ENDIANNESS_LITTLE, databits, addrbits, 0) @@ -130,22 +130,22 @@ template <int Width>ns32000_device<Width>::ns32000_device(const machine_config & { } -ns32008_device::ns32008_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +ns32008_device::ns32008_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : ns32000_device(mconfig, NS32008, tag, owner, clock, 8, 24) { } -ns32016_device::ns32016_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +ns32016_device::ns32016_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : ns32000_device(mconfig, NS32016, tag, owner, clock, 16, 24) { } -ns32032_device::ns32032_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +ns32032_device::ns32032_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : ns32000_device(mconfig, NS32032, tag, owner, clock, 32, 24) { } -ns32332_device::ns32332_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) +ns32332_device::ns32332_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock) : ns32000_device(mconfig, NS32332, tag, owner, clock, 32, 32) { } diff --git a/src/devices/cpu/ns32000/ns32000.h b/src/devices/cpu/ns32000/ns32000.h index 654d8661f8a..ae41f9fbb07 100644 --- a/src/devices/cpu/ns32000/ns32000.h +++ b/src/devices/cpu/ns32000/ns32000.h @@ -16,10 +16,10 @@ public: template <typename T> void set_mmu(T &&tag) { m_mmu.set_tag(std::forward<T>(tag)); } // construction/destruction - ns32000_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock); + ns32000_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, const XTAL &clock); protected: - ns32000_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, int databits, int addrbits); + ns32000_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, const XTAL &clock, int databits, int addrbits); // device_t overrides virtual void device_start() override; @@ -191,25 +191,25 @@ private: class ns32008_device : public ns32000_device<0> { public: - ns32008_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); + ns32008_device(machine_config const &mconfig, char const *tag, device_t *owner, const XTAL &clock); }; class ns32016_device : public ns32000_device<1> { public: - ns32016_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); + ns32016_device(machine_config const &mconfig, char const *tag, device_t *owner, const XTAL &clock); }; class ns32032_device : public ns32000_device<2> { public: - ns32032_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); + ns32032_device(machine_config const &mconfig, char const *tag, device_t *owner, const XTAL &clock); }; class ns32332_device : public ns32000_device<2> { public: - ns32332_device(machine_config const &mconfig, char const *tag, device_t *owner, u32 clock); + ns32332_device(machine_config const &mconfig, char const *tag, device_t *owner, const XTAL &clock); }; DECLARE_DEVICE_TYPE(NS32008, ns32008_device) |