do not use uint

This commit is contained in:
Stanislav Shwartsman 2019-11-12 22:00:29 +00:00
parent b1e9701e5c
commit 4aba3b54e7
2 changed files with 14 additions and 15 deletions

View File

@ -213,9 +213,9 @@ class BOCHSAPI bx_local_apic_c : public logfunctions
BX_CPU_C *cpu;
bx_bool get_vector(Bit32u *reg, uint vector);
void set_vector(Bit32u *reg, uint vector);
void clear_vector(Bit32u *reg, uint vector);
bx_bool get_vector(Bit32u *reg, unsigned vector);
void set_vector(Bit32u *reg, unsigned vector);
void clear_vector(Bit32u *reg, unsigned vector);
public:
bx_bool INTR;

View File

@ -236,19 +236,18 @@ struct bx_efer_t {
#if BX_CPU_LEVEL >= 6
#define XSAVE_SSE_STATE_LEN (256)
#define XSAVE_YMM_STATE_LEN (256)
#define XSAVE_OPMASK_STATE_LEN (64)
#define XSAVE_ZMM_HI256_STATE_LEN (512)
#define XSAVE_HI_ZMM_STATE_LEN (1024)
#define XSAVE_PKRU_STATE_LEN (64)
const unsigned XSAVE_SSE_STATE_LEN = 256;
const unsigned XSAVE_YMM_STATE_LEN = 256;
const unsigned XSAVE_OPMASK_STATE_LEN = 64;
const unsigned XSAVE_ZMM_HI256_STATE_LEN = 512;
const unsigned XSAVE_HI_ZMM_STATE_LEN = 1024;
#define XSAVE_SSE_STATE_OFFSET (160)
#define XSAVE_YMM_STATE_OFFSET (576)
#define XSAVE_OPMASK_STATE_OFFSET (1088)
#define XSAVE_ZMM_HI256_STATE_OFFSET (1152)
#define XSAVE_HI_ZMM_STATE_OFFSET (1664)
#define XSAVE_PKRU_STATE_OFFSET (2688)
const unsigned XSAVE_SSE_STATE_OFFSET = 160;
const unsigned XSAVE_YMM_STATE_OFFSET = 576;
const unsigned XSAVE_OPMASK_STATE_OFFSET = 1088;
const unsigned XSAVE_ZMM_HI256_STATE_OFFSET = 1152;
const unsigned XSAVE_HI_ZMM_STATE_OFFSET = 1664;
const unsigned XSAVE_PKRU_STATE_OFFSET = 2688;
struct xcr0_t {
Bit32u val32; // 32bit value of register