Philippe Mathieu-Daudé
e01e1c7e2e
target/tricore: Use explicit little-endian LD/ST API
...
The TriCore architecture uses little endianness. Directly use
the little-endian LD/ST API.
Mechanical change using:
$ end=le; \
for acc in uw w l q tul; do \
sed -i -e "s/ld${acc}_p(/ld${acc}_${end}_p(/" \
-e "s/st${acc}_p(/st${acc}_${end}_p(/" \
$(git grep -wlE '(ld|st)t?u?[wlq]_p' target/tricore/); \
done
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20241004163042.85922-15-philmd@linaro.org >
2024-10-15 12:13:59 -03:00
Philippe Mathieu-Daudé
0654c79416
gdbstub: Avoid including 'cpu.h' in 'gdbstub/helpers.h'
...
We only need the "exec/tswap.h" and "cpu-param.h" headers.
Only include "cpu.h" in the target gdbstub.c source files.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20240418192525.97451-20-philmd@linaro.org >
2024-04-26 15:31:37 +02:00
Philippe Mathieu-Daudé
39ac0bac99
target/tricore: Prefer fast cpu_env() over slower CPU QOM cast macro
...
Mechanical patch produced running the command documented
in scripts/coccinelle/cpu_env.cocci_template header.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de >
Message-ID: <20240129164514.73104-28-philmd@linaro.org >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2024-03-12 12:04:25 +01:00
Alex Bennée
4ea5fe997d
gdbstub: move register helpers into standalone include
...
These inline helpers are all used by target specific code so move them
out of the general header so we don't needlessly pollute the rest of
the API with target specific stuff.
Note we have to include cpu.h in semihosting as it was relying on a
side effect before.
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com >
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20230302190846.2593720-21-alex.bennee@linaro.org >
Message-Id: <20230303025805.625589-21-richard.henderson@linaro.org >
2023-03-07 20:44:08 +00:00
Richard Henderson
3b1371159c
target/tricore: Fix gdbstub write to address registers
...
Typo had double-writes to data registers.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1363
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Signed-off-by: Richard Henderson <richard.henderson@linaro.org >
2022-12-18 09:39:17 -08:00
Marc-André Lureau
0f9668e0c1
Remove qemu-common.h include from most units
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20220323155743.1585078-33-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2022-04-06 14:31:55 +02:00
Chetan Pant
eb85394fe7
tricore tcg cpus: Fix Lesser GPL version number
...
There is no "version 2" of the "Lesser" General Public License.
It is either "GPL version 2.0" or "Lesser GPL version 2.1".
This patch replaces all occurrences of "Lesser GPL version 2" with
"Lesser GPL version 2.1" in comment section.
Signed-off-by: Chetan Pant <chetan4windows@gmail.com >
Message-Id: <20201023122157.19321-1-chetan4windows@gmail.com >
Reviewed-by: Thomas Huth <thuth@redhat.com >
Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2020-11-15 16:40:30 +01:00
Bastian Koppelmann
d127de3baa
target/tricore: Implement gdbstub
...
Acked-by: Alex Bennée <alex.bennee@linaro.org >
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de >
Message-Id: <20200529072148.284037-6-kbastian@mail.uni-paderborn.de >
2020-06-01 16:55:13 +02:00