mirror of
https://github.com/qemu/qemu.git
synced 2026-04-23 22:54:54 +00:00
This is the minimal change beginning with TARGET_ARCH in configs/targets/or1k-* from openrisc to or1k, then adjust TARGET_OR1K, QEMU_ARCH_OR1K, directory names, and meson.build to match. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20260205030244.266447-2-richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
22 lines
457 B
C
22 lines
457 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu.h"
|
|
#include "loader.h"
|
|
#include "target_elf.h"
|
|
|
|
|
|
const char *get_elf_cpu_model(uint32_t eflags)
|
|
{
|
|
return "any";
|
|
}
|
|
|
|
void elf_core_copy_regs(target_elf_gregset_t *r, const CPUOpenRISCState *env)
|
|
{
|
|
for (int i = 0; i < 32; i++) {
|
|
r->pt.gpr[i] = tswapal(cpu_get_gpr(env, i));
|
|
}
|
|
r->pt.pc = tswapal(env->pc);
|
|
r->pt.sr = tswapal(cpu_get_sr(env));
|
|
}
|