summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2019-05-30 03:19:47 +0200
committer hap <happppp@users.noreply.github.com>2019-05-30 03:19:47 +0200
commit65ac9fca522755798a68da50f6170f2b2f06d836 (patch)
treed2aea8648c74220bb1dec4ea79ce303afbd0281c
parent6ef307855af00f4676050121e3532d6cefc03e72 (diff)
chessm: ram device only allows root ":ram" to be configured (nw)
-rw-r--r--src/devices/bus/isa/chessm.cpp10
-rw-r--r--src/devices/bus/isa/chessm.h2
2 files changed, 1 insertions, 11 deletions
diff --git a/src/devices/bus/isa/chessm.cpp b/src/devices/bus/isa/chessm.cpp
index 8745279dfbc..3e14c5bec21 100644
--- a/src/devices/bus/isa/chessm.cpp
+++ b/src/devices/bus/isa/chessm.cpp
@@ -30,7 +30,6 @@ isa8_chessm_device::isa8_chessm_device(const machine_config &mconfig, const char
device_t(mconfig, ISA8_CHESSM, tag, owner, clock),
device_isa8_card_interface(mconfig, *this),
m_maincpu(*this, "maincpu"),
- m_ram(*this, "ram"),
m_mainlatch(*this, "mainlatch"),
m_sublatch(*this, "sublatch")
{ }
@@ -43,11 +42,6 @@ isa8_chessm_device::isa8_chessm_device(const machine_config &mconfig, const char
void isa8_chessm_device::device_start()
{
- if (!m_ram->started())
- throw device_missing_dependencies();
-
- m_maincpu->space(AS_PROGRAM).install_ram(0, m_ram->size() - 1, m_ram->pointer());
-
set_isa_device();
m_installed = false;
}
@@ -120,9 +114,6 @@ void isa8_chessm_device::device_add_mconfig(machine_config &config)
m_maincpu->set_addrmap(AS_PROGRAM, &isa8_chessm_device::chessm_mem);
m_maincpu->set_copro_type(arm_cpu_device::copro_type::VL86C020);
- RAM(config, m_ram).set_extra_options("128K, 512K, 1M");
- m_ram->set_default_size("512K");
-
GENERIC_LATCH_8(config, m_mainlatch);
GENERIC_LATCH_8(config, m_sublatch);
m_sublatch->data_pending_callback().set_inputline(m_maincpu, ARM_FIRQ_LINE);
@@ -168,5 +159,6 @@ WRITE8_MEMBER(isa8_chessm_device::chessm_w)
void isa8_chessm_device::chessm_mem(address_map &map)
{
+ map(0x00000000, 0x0007ffff).ram();
map(0x00380000, 0x00380000).r(m_sublatch, FUNC(generic_latch_8_device::read)).w(m_mainlatch, FUNC(generic_latch_8_device::write));
}
diff --git a/src/devices/bus/isa/chessm.h b/src/devices/bus/isa/chessm.h
index 7fb515a49b3..b514fdfe63d 100644
--- a/src/devices/bus/isa/chessm.h
+++ b/src/devices/bus/isa/chessm.h
@@ -13,7 +13,6 @@
#include "isa.h"
#include "cpu/arm/arm.h"
-#include "machine/ram.h"
#include "machine/gen_latch.h"
@@ -37,7 +36,6 @@ protected:
private:
required_device<arm_cpu_device> m_maincpu;
- required_device<ram_device> m_ram;
required_device<generic_latch_8_device> m_mainlatch;
required_device<generic_latch_8_device> m_sublatch;