summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/m6502/m6502.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/m6502/m6502.h')
-rw-r--r--src/devices/cpu/m6502/m6502.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/devices/cpu/m6502/m6502.h b/src/devices/cpu/m6502/m6502.h
index fc527ad8c5a..b6034d98f0a 100644
--- a/src/devices/cpu/m6502/m6502.h
+++ b/src/devices/cpu/m6502/m6502.h
@@ -11,12 +11,6 @@
#ifndef MAME_CPU_M6502_M6502_H
#define MAME_CPU_M6502_M6502_H
-#define MCFG_M6502_DISABLE_CACHE() \
- downcast<m6502_device *>(device)->disable_cache();
-
-#define MCFG_M6502_SYNC_CALLBACK(_cb) \
- downcast<m6502_device &>(*device).set_sync_callback(DEVCB_##_cb);
-
class m6502_device : public cpu_device {
public:
enum {
@@ -31,7 +25,7 @@ public:
bool get_sync() const { return sync; }
void disable_cache() { cache_disabled = true; }
- template<class Object> devcb_base &set_sync_callback(Object &&cb) { return sync_w.set_callback(std::forward<Object>(cb)); }
+ auto sync_cb() { return sync_w.bind(); }
devcb_write_line sync_w;