[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/7] target/tricore: Rename csfr.def -> csfr.h.inc
From: |
Laurent Vivier |
Subject: |
[PULL 6/7] target/tricore: Rename csfr.def -> csfr.h.inc |
Date: |
Sat, 5 Nov 2022 20:52:26 +0100 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
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.def => csfr.h.inc} | 0
target/tricore/translate.c | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
rename target/tricore/{csfr.def => csfr.h.inc} (100%)
diff --git a/target/tricore/csfr.def b/target/tricore/csfr.h.inc
similarity index 100%
rename from target/tricore/csfr.def
rename to target/tricore/csfr.h.inc
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index c5b7bfbf2013..df9e46c6495e 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -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 {
--
2.37.3
- [PULL 0/7] Trivial branch for 7.2 patches, Laurent Vivier, 2022/11/05
- [PULL 1/7] qapi: virtio: Fix the introduced version, Laurent Vivier, 2022/11/05
- [PULL 4/7] target/m68k: Rename qregs.def -> qregs.h.inc, Laurent Vivier, 2022/11/05
- [PULL 3/7] xen/pt: fix syntax error that causes FTBFS in some configurations, Laurent Vivier, 2022/11/05
- [PULL 7/7] tests/unit: simpler variable sequence for test-io-channel, Laurent Vivier, 2022/11/05
- [PULL 2/7] Fix some typos in documentation and comments, Laurent Vivier, 2022/11/05
- [PULL 6/7] target/tricore: Rename csfr.def -> csfr.h.inc,
Laurent Vivier <=
- [PULL 5/7] target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc, Laurent Vivier, 2022/11/05
- Re: [PULL 0/7] Trivial branch for 7.2 patches, Stefan Hajnoczi, 2022/11/07