From 6ab0eda6535db6cb391f1c1f685e7fc23ed804db Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 23 Feb 2023 13:58:35 +0100 Subject: m68000gen.py: Generate the missing emu.h includes --- src/devices/cpu/m68000/m68000-decode.cpp | 1 + src/devices/cpu/m68000/m68000-sdf.cpp | 1 + src/devices/cpu/m68000/m68000-sdfm.cpp | 1 + src/devices/cpu/m68000/m68000-sdp.cpp | 1 + src/devices/cpu/m68000/m68000-sdpm.cpp | 1 + src/devices/cpu/m68000/m68000-sif.cpp | 1 + src/devices/cpu/m68000/m68000-sifm.cpp | 1 + src/devices/cpu/m68000/m68000-sip.cpp | 1 + src/devices/cpu/m68000/m68000-sipm.cpp | 1 + src/devices/cpu/m68000/m68000gen.py | 2 ++ 10 files changed, 11 insertions(+) diff --git a/src/devices/cpu/m68000/m68000-decode.cpp b/src/devices/cpu/m68000/m68000-decode.cpp index 61fe2f7b622..250d8e01ef4 100644 --- a/src/devices/cpu/m68000/m68000-decode.cpp +++ b/src/devices/cpu/m68000/m68000-decode.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py decode m68000.lst m68000-decode.cpp +#include "emu.h" #include "m68000.h" const m68000_device::decode_entry m68000_device::s_packed_decode_table[] = { diff --git a/src/devices/cpu/m68000/m68000-sdf.cpp b/src/devices/cpu/m68000/m68000-sdf.cpp index 03e10bc3680..340f76eceb9 100644 --- a/src/devices/cpu/m68000/m68000-sdf.cpp +++ b/src/devices/cpu/m68000/m68000-sdf.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sdf m68000.lst m68000-sdf.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_df() diff --git a/src/devices/cpu/m68000/m68000-sdfm.cpp b/src/devices/cpu/m68000/m68000-sdfm.cpp index e4a499641f4..7e20be9262f 100644 --- a/src/devices/cpu/m68000/m68000-sdfm.cpp +++ b/src/devices/cpu/m68000/m68000-sdfm.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sdfm m68000.lst m68000-sdfm.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_dfm() diff --git a/src/devices/cpu/m68000/m68000-sdp.cpp b/src/devices/cpu/m68000/m68000-sdp.cpp index a2472576d8c..f9ca8f73b03 100644 --- a/src/devices/cpu/m68000/m68000-sdp.cpp +++ b/src/devices/cpu/m68000/m68000-sdp.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sdp m68000.lst m68000-sdp.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_dp() diff --git a/src/devices/cpu/m68000/m68000-sdpm.cpp b/src/devices/cpu/m68000/m68000-sdpm.cpp index 30406a8a3f8..3315f15eecb 100644 --- a/src/devices/cpu/m68000/m68000-sdpm.cpp +++ b/src/devices/cpu/m68000/m68000-sdpm.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sdpm m68000.lst m68000-sdpm.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_dpm() diff --git a/src/devices/cpu/m68000/m68000-sif.cpp b/src/devices/cpu/m68000/m68000-sif.cpp index 39155d7d0e7..f76c8c519e0 100644 --- a/src/devices/cpu/m68000/m68000-sif.cpp +++ b/src/devices/cpu/m68000/m68000-sif.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sif m68000.lst m68000-sif.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_if() diff --git a/src/devices/cpu/m68000/m68000-sifm.cpp b/src/devices/cpu/m68000/m68000-sifm.cpp index 28760fa119d..051af86f520 100644 --- a/src/devices/cpu/m68000/m68000-sifm.cpp +++ b/src/devices/cpu/m68000/m68000-sifm.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sifm m68000.lst m68000-sifm.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_ifm() diff --git a/src/devices/cpu/m68000/m68000-sip.cpp b/src/devices/cpu/m68000/m68000-sip.cpp index 685f2ef1fbd..b46ba317e5a 100644 --- a/src/devices/cpu/m68000/m68000-sip.cpp +++ b/src/devices/cpu/m68000/m68000-sip.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sip m68000.lst m68000-sip.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_ip() diff --git a/src/devices/cpu/m68000/m68000-sipm.cpp b/src/devices/cpu/m68000/m68000-sipm.cpp index 0433d3365ab..8776425c623 100644 --- a/src/devices/cpu/m68000/m68000-sipm.cpp +++ b/src/devices/cpu/m68000/m68000-sipm.cpp @@ -2,6 +2,7 @@ // // Generated by m68000gen.py sipm m68000.lst m68000-sipm.cpp +#include "emu.h" #include "m68000.h" void m68000_device::state_reset_ipm() diff --git a/src/devices/cpu/m68000/m68000gen.py b/src/devices/cpu/m68000/m68000gen.py index 39de612bbd9..5c3f882641b 100755 --- a/src/devices/cpu/m68000/m68000gen.py +++ b/src/devices/cpu/m68000/m68000gen.py @@ -2289,6 +2289,7 @@ def generate_source_file(fname, cmd, gen_mode): print("//", file=out) print("// Generated by m68000gen.py %s" % cmd, file=out) print("", file=out) + print("#include \"emu.h\"", file=out) print("#include \"m68000.h\"", file=out) print("", file=out) @@ -2368,6 +2369,7 @@ if sys.argv[1] == 'decode': print("//", file=out) print("// Generated by m68000gen.py %s" % ' '.join(sys.argv[1:]), file=out) print("", file=out) + print("#include \"emu.h\"", file=out) print("#include \"m68000.h\"", file=out) print("", file=out) print("const m68000_device::decode_entry m68000_device::s_packed_decode_table[] = {", file=out) -- cgit v1.2.3