mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
bsd-user: Change thread_env to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
a2247f8ec9
commit
dca1173c20
3 changed files with 8 additions and 6 deletions
|
@ -98,7 +98,7 @@ enum {
|
|||
static const char *get_elf_platform(void)
|
||||
{
|
||||
static char elf_platform[] = "i386";
|
||||
int family = (thread_env->cpuid_version >> 8) & 0xff;
|
||||
int family = object_property_get_int(OBJECT(thread_cpu), "family", NULL);
|
||||
if (family > 6)
|
||||
family = 6;
|
||||
if (family >= 3)
|
||||
|
@ -110,7 +110,9 @@ static const char *get_elf_platform(void)
|
|||
|
||||
static uint32_t get_elf_hwcap(void)
|
||||
{
|
||||
return thread_env->features[FEAT_1_EDX];
|
||||
X86CPU *cpu = X86_CPU(thread_cpu);
|
||||
|
||||
return cpu->env.features[FEAT_1_EDX];
|
||||
}
|
||||
|
||||
#ifdef TARGET_X86_64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue