mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/mips: Have mips_cpu_create_with_clock() take an endianness argument
mips_cpu_create_with_clock() creates a vCPU. Pass it the vCPU endianness requested by argument. Update the board call sites. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20241010215015.44326-17-philmd@linaro.org>
This commit is contained in:
parent
805659a895
commit
3e8f019be7
7 changed files with 15 additions and 7 deletions
|
@ -1376,12 +1376,14 @@ static inline void cpu_get_tb_cpu_state(CPUMIPSState *env, vaddr *pc,
|
|||
* mips_cpu_create_with_clock:
|
||||
* @typename: a MIPS CPU type.
|
||||
* @cpu_refclk: this cpu input clock (an output clock of another device)
|
||||
* @is_big_endian: whether this CPU is configured in big endianness
|
||||
*
|
||||
* Instantiates a MIPS CPU, set the input clock of the CPU to @cpu_refclk,
|
||||
* then realizes the CPU.
|
||||
*
|
||||
* Returns: A #CPUState or %NULL if an error occurred.
|
||||
*/
|
||||
MIPSCPU *mips_cpu_create_with_clock(const char *cpu_type, Clock *cpu_refclk);
|
||||
MIPSCPU *mips_cpu_create_with_clock(const char *cpu_type, Clock *cpu_refclk,
|
||||
bool is_big_endian);
|
||||
|
||||
#endif /* MIPS_CPU_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue