summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/ns32000
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-06-16 12:47:52 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-29 23:06:41 +0200
commit45d4cd52a8194f2ef9e0383cfb2e2a35634af6ff (patch)
tree4e8d8fcb7382a5e9e0bce5ec59939bcfbe67155a /src/devices/cpu/ns32000
parent5c14bcdfcb4aefb71b5b62387c4ad05dbeb3814e (diff)
full xtal conversionxtal
Diffstat (limited to 'src/devices/cpu/ns32000')
-rw-r--r--src/devices/cpu/ns32000/ns32000.cpp10
-rw-r--r--src/devices/cpu/ns32000/ns32000.h12
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)