Philippe Mathieu-Daudé
e922abf5c0
linux-user/mips: Select Loongson CPU for Loongson binaries
...
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20240814133928.6746-5-philmd@linaro.org >
2024-08-20 00:49:13 +02:00
Philippe Mathieu-Daudé
309ce6af94
linux-user/mips: Select MIPS64R2-generic for Rel2 binaries
...
Cc: YunQiang Su <syq@debian.org >
Reported-by: Jiaxun Yang <jiaxun.yang@flygoat.com >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20240814133928.6746-4-philmd@linaro.org >
2024-08-20 00:49:13 +02:00
Philippe Mathieu-Daudé
1e5a7c57a5
linux-user/mips: Select Octeon68XX CPU for Octeon binaries
...
The Octeon68XX CPU is available since commit 9a6046a655
("target/mips: introduce Cavium Octeon CPU model").
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1722
Reported-by: Johnathan Hữu Trí <nhtri2003@gmail.com >
Suggested-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20240814133928.6746-3-philmd@linaro.org >
2024-08-20 00:49:05 +02:00
Philippe Mathieu-Daudé
f7e3d7521b
linux-user/mips: Do not try to use removed R5900 CPU
...
R5900 emulation was removed in commit 823f2897bd
.
Remove it from ELF parsing in order to avoid:
$ qemu-mipsn32 ./test5900
qemu-mipsn32: unable to find CPU model 'R5900'
This reverts commit 4d9e5a0eb7
.
Fixes: 823f2897bd
("target/mips: Disable R5900 support")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20240814133928.6746-2-philmd@linaro.org >
2024-08-20 00:47:57 +02:00
Fredrik Noring
b8f91fd49c
linux-user/mips: Support the n32 ABI for the R5900
...
Recognise the R5900, which reports itself as MIPS III, as a 64-bit CPU
supporting the n32 ABI.
Signed-off-by: Fredrik Noring <noring@nocrew.org >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <5bea109f0c140da6a821aa7f9705d4b3717e86dc.1541701393.git.noring@nocrew.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2021-02-15 12:10:03 +01:00
YunQiang Su
45506bddba
linux-user: MIPS set cpu to r6 CPU if binary is R6
...
So here we need to detect the version of binaries and set
cpu_model for it.
Signed-off-by: YunQiang Su <syq@debian.org >
[lv: original patch modified to move code into cpu_get_model()]
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20180220173307.25125-5-laurent@vivier.eu >
2018-02-25 17:29:45 +01:00
Laurent Vivier
542ca43498
linux-user: Move CPU type name selection to a function
...
Instead of a sequence of "#if ... #endif" move the
selection to a function in linux-user/*/target_elf.h
We can't add them in linux-user/*/target_cpu.h
because we will need to include "elf.h" to
use ELF flags with eflags, and including
"elf.h" in "target_cpu.h" introduces some
conflicts in elfload.c
Suggested-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20180220173307.25125-2-laurent@vivier.eu >
2018-02-25 17:27:41 +01:00