[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/13] i386: hvf: Drop HVFX86EmulatorState
From: |
Roman Bolshakov |
Subject: |
[PATCH 13/13] i386: hvf: Drop HVFX86EmulatorState |
Date: |
Thu, 28 May 2020 22:37:58 +0300 |
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
---
include/qemu/typedefs.h | 1 -
target/i386/cpu.h | 1 -
target/i386/hvf/hvf.c | 1 -
target/i386/hvf/x86.h | 4 ----
4 files changed, 7 deletions(-)
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index ecf3cde26c..6ce0356f2c 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -51,7 +51,6 @@ typedef struct FWCfgIoState FWCfgIoState;
typedef struct FWCfgMemState FWCfgMemState;
typedef struct FWCfgState FWCfgState;
typedef struct HostMemoryBackend HostMemoryBackend;
-typedef struct HVFX86EmulatorState HVFX86EmulatorState;
typedef struct I2CBus I2CBus;
typedef struct I2SCodec I2SCodec;
typedef struct IOMMUMemoryRegion IOMMUMemoryRegion;
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index be44e19154..abf9d10d86 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1594,7 +1594,6 @@ typedef struct CPUX86State {
#if defined(CONFIG_HVF)
hvf_lazy_flags hvf_lflags;
void *hvf_mmio_buf;
- HVFX86EmulatorState *hvf_emul;
#endif
uint64_t mcg_cap;
diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c
index 57696c46c7..be016b951a 100644
--- a/target/i386/hvf/hvf.c
+++ b/target/i386/hvf/hvf.c
@@ -568,7 +568,6 @@ int hvf_init_vcpu(CPUState *cpu)
hvf_state->hvf_caps = g_new0(struct hvf_vcpu_caps, 1);
env->hvf_mmio_buf = g_new(char, 4096);
- env->hvf_emul = g_new0(HVFX86EmulatorState, 1);
r = hv_vcpu_create((hv_vcpuid_t *)&cpu->hvf_fd, HV_VCPU_DEFAULT);
cpu->vcpu_dirty = 1;
diff --git a/target/i386/hvf/x86.h b/target/i386/hvf/x86.h
index 483fcea762..bacade7b65 100644
--- a/target/i386/hvf/x86.h
+++ b/target/i386/hvf/x86.h
@@ -228,10 +228,6 @@ typedef struct x68_segment_selector {
};
} __attribute__ ((__packed__)) x68_segment_selector;
-/* Definition of hvf_x86_state is here */
-struct HVFX86EmulatorState {
-};
-
/* useful register access macros */
#define x86_reg(cpu, reg) ((x86_register *) &cpu->regs[reg])
--
2.26.1
- [PATCH 01/13] i386: hvf: Move HVFState definition into hvf, (continued)
- [PATCH 01/13] i386: hvf: Move HVFState definition into hvf, Roman Bolshakov, 2020/05/28
- [PATCH 04/13] i386: hvf: Drop unused variable, Roman Bolshakov, 2020/05/28
- [PATCH 06/13] i386: hvf: Use IP from CPUX86State, Roman Bolshakov, 2020/05/28
- [PATCH 08/13] i386: hvf: Drop rflags from HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 05/13] i386: hvf: Use ins_len to advance IP, Roman Bolshakov, 2020/05/28
- [PATCH 07/13] i386: hvf: Drop fetch_rip from HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 10/13] i386: hvf: Drop regs in HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 11/13] i386: hvf: Move lazy_flags into CPUX86State, Roman Bolshakov, 2020/05/28
- [PATCH 12/13] i386: hvf: Move mmio_buf into CPUX86State, Roman Bolshakov, 2020/05/28
- [PATCH 09/13] i386: hvf: Drop copy of RFLAGS defines, Roman Bolshakov, 2020/05/28
- [PATCH 13/13] i386: hvf: Drop HVFX86EmulatorState,
Roman Bolshakov <=
- Re: [PATCH 00/13] i386: hvf: Remove HVFX86EmulatorState, no-reply, 2020/05/28