target/m68k: Rename qregs.def -> qregs.h.inc
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 25 Oct 2022 23:50:04 +0000 (01:50 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 5 Nov 2022 19:35:45 +0000 (20:35 +0100)
We use the .h.inc extension to include C headers. To be consistent
with the rest of the codebase, rename the C headers using the .def
extension.

IDE/tools using our .editorconfig / .gitattributes will leverage
this consistency.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221025235006.7215-2-philmd@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/qregs.def [deleted file]
target/m68k/qregs.h.inc [new file with mode: 0644]
target/m68k/translate.c

diff --git a/target/m68k/qregs.def b/target/m68k/qregs.def
deleted file mode 100644 (file)
index 1aadc62..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-DEFO32(PC, pc)
-DEFO32(SR, sr)
-DEFO32(CC_OP, cc_op)
-DEFO32(CC_X, cc_x)
-DEFO32(CC_C, cc_c)
-DEFO32(CC_N, cc_n)
-DEFO32(CC_V, cc_v)
-DEFO32(CC_Z, cc_z)
-DEFO32(MACSR, macsr)
-DEFO32(MAC_MASK, mac_mask)
diff --git a/target/m68k/qregs.h.inc b/target/m68k/qregs.h.inc
new file mode 100644 (file)
index 0000000..1aadc62
--- /dev/null
@@ -0,0 +1,10 @@
+DEFO32(PC, pc)
+DEFO32(SR, sr)
+DEFO32(CC_OP, cc_op)
+DEFO32(CC_X, cc_x)
+DEFO32(CC_C, cc_c)
+DEFO32(CC_N, cc_n)
+DEFO32(CC_V, cc_v)
+DEFO32(CC_Z, cc_z)
+DEFO32(MACSR, macsr)
+DEFO32(MAC_MASK, mac_mask)
index 5cbde4be3404085853b3a020153d8f1f333ecc18..18418312b14b41585e9df0098d4aff0d3c0684df 100644 (file)
@@ -39,7 +39,7 @@
 
 #define DEFO32(name, offset) static TCGv QREG_##name;
 #define DEFO64(name, offset) static TCGv_i64 QREG_##name;
-#include "qregs.def"
+#include "qregs.h.inc"
 #undef DEFO32
 #undef DEFO64
 
@@ -75,7 +75,7 @@ void m68k_tcg_init(void)
 #define DEFO64(name, offset) \
     QREG_##name = tcg_global_mem_new_i64(cpu_env, \
         offsetof(CPUM68KState, offset), #name);
-#include "qregs.def"
+#include "qregs.h.inc"
 #undef DEFO32
 #undef DEFO64