OSDN Git Service

target/tricore: Rename csfr.def -> csfr.h.inc
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 25 Oct 2022 23:50:06 +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: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221025235006.7215-4-philmd@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/tricore/csfr.h.inc [moved from target/tricore/csfr.def with 100% similarity]
target/tricore/translate.c

index c5b7bfb..df9e46c 100644 (file)
@@ -388,7 +388,7 @@ static inline void gen_mfcr(DisasContext *ctx, TCGv ret, int32_t offset)
         gen_helper_psw_read(ret, cpu_env);
     } else {
         switch (offset) {
-#include "csfr.def"
+#include "csfr.h.inc"
         }
     }
 }
@@ -418,7 +418,7 @@ static inline void gen_mtcr(DisasContext *ctx, TCGv r1,
             gen_helper_psw_write(cpu_env, r1);
         } else {
             switch (offset) {
-#include "csfr.def"
+#include "csfr.h.inc"
             }
         }
     } else {