mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/microblaze: Evaluate TARGET_BIG_ENDIAN at compile time
Rather than evaluating TARGET_BIG_ENDIAN at preprocessing time via #ifdef'ry, do it in C at compile time Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250417131004.47205-8-philmd@linaro.org>
This commit is contained in:
parent
1b079a6eeb
commit
eb3020b6ed
2 changed files with 12 additions and 12 deletions
|
@ -218,12 +218,12 @@ petalogix_ml605_init(MachineState *machine)
|
|||
|
||||
static void petalogix_ml605_machine_init(MachineClass *mc)
|
||||
{
|
||||
#if TARGET_BIG_ENDIAN
|
||||
mc->desc = "PetaLogix linux refdesign for xilinx ml605 (big endian)";
|
||||
mc->deprecation_reason = "big endian support is not tested";
|
||||
#else
|
||||
mc->desc = "PetaLogix linux refdesign for xilinx ml605 (little endian)";
|
||||
#endif
|
||||
if (TARGET_BIG_ENDIAN) {
|
||||
mc->desc = "PetaLogix linux refdesign for xilinx ml605 (big endian)";
|
||||
mc->deprecation_reason = "big endian support is not tested";
|
||||
} else {
|
||||
mc->desc = "PetaLogix linux refdesign for xilinx ml605 (little endian)";
|
||||
}
|
||||
mc->init = petalogix_ml605_init;
|
||||
}
|
||||
|
||||
|
|
|
@ -181,12 +181,12 @@ static void xlnx_zynqmp_pmu_init(MachineState *machine)
|
|||
|
||||
static void xlnx_zynqmp_pmu_machine_init(MachineClass *mc)
|
||||
{
|
||||
#if TARGET_BIG_ENDIAN
|
||||
mc->desc = "Xilinx ZynqMP PMU machine (big endian)";
|
||||
mc->deprecation_reason = "big endian support is not tested";
|
||||
#else
|
||||
mc->desc = "Xilinx ZynqMP PMU machine (little endian)";
|
||||
#endif
|
||||
if (TARGET_BIG_ENDIAN) {
|
||||
mc->desc = "Xilinx ZynqMP PMU machine (big endian)";
|
||||
mc->deprecation_reason = "big endian support is not tested";
|
||||
} else {
|
||||
mc->desc = "Xilinx ZynqMP PMU machine (little endian)";
|
||||
}
|
||||
mc->init = xlnx_zynqmp_pmu_init;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue