Fix MSVC build and remove warning about unused functions
This commit is contained in:
@@ -28,9 +28,9 @@
|
||||
|
||||
/* #define DEBUG_HELPER */
|
||||
#ifdef DEBUG_HELPER
|
||||
#define HELPER_LOG(x...) qemu_log(x)
|
||||
#define HELPER_LOG(x, ...) qemu_log(x)
|
||||
#else
|
||||
#define HELPER_LOG(x...)
|
||||
#define HELPER_LOG(x, ...)
|
||||
#endif
|
||||
|
||||
static uint32_t cc_calc_ltgt_32(int32_t src, int32_t dst)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "cpu.h"
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
typedef struct LowCore {
|
||||
QEMU_PACK(typedef struct LowCore {
|
||||
/* prefix area: defined by architecture */
|
||||
uint32_t ccw1[2]; /* 0x000 */
|
||||
uint32_t ccw2[4]; /* 0x008 */
|
||||
@@ -91,7 +91,7 @@ typedef struct LowCore {
|
||||
/* align to the top of the prefix area */
|
||||
|
||||
uint8_t pad18[0x2000 - 0x1400]; /* 0x1400 */
|
||||
} QEMU_PACKED LowCore;
|
||||
}) LowCore;
|
||||
QEMU_BUILD_BUG_ON(sizeof(LowCore) != 8192);
|
||||
#endif /* CONFIG_USER_ONLY */
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ void ioinst_handle_hsch(S390CPU *cpu, uint64_t reg1, uintptr_t ra)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int ioinst_schib_valid(SCHIB *schib)
|
||||
{
|
||||
if ((be16_to_cpu(schib->pmcw.flags) & PMCW_FLAGS_MASK_INVALID) ||
|
||||
@@ -109,6 +110,7 @@ static int ioinst_schib_valid(SCHIB *schib)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
void ioinst_handle_msch(S390CPU *cpu, uint64_t reg1, uint32_t ipb, uintptr_t ra)
|
||||
{
|
||||
@@ -144,6 +146,7 @@ void ioinst_handle_msch(S390CPU *cpu, uint64_t reg1, uint32_t ipb, uintptr_t ra)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void copy_orb_from_guest(ORB *dest, const ORB *src)
|
||||
{
|
||||
dest->intparm = be32_to_cpu(src->intparm);
|
||||
@@ -168,6 +171,7 @@ static int ioinst_orb_valid(ORB *orb)
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
void ioinst_handle_ssch(S390CPU *cpu, uint64_t reg1, uint32_t ipb, uintptr_t ra)
|
||||
{
|
||||
@@ -350,20 +354,20 @@ int ioinst_handle_tsch(S390CPU *cpu, uint64_t reg1, uint32_t ipb, uintptr_t ra)
|
||||
return 0;
|
||||
}
|
||||
|
||||
typedef struct ChscReq {
|
||||
QEMU_PACK(typedef struct ChscReq {
|
||||
uint16_t len;
|
||||
uint16_t command;
|
||||
uint32_t param0;
|
||||
uint32_t param1;
|
||||
uint32_t param2;
|
||||
} QEMU_PACKED ChscReq;
|
||||
}) ChscReq;
|
||||
|
||||
typedef struct ChscResp {
|
||||
QEMU_PACK(typedef struct ChscResp {
|
||||
uint16_t len;
|
||||
uint16_t code;
|
||||
uint32_t param;
|
||||
char data[];
|
||||
} QEMU_PACKED ChscResp;
|
||||
}) ChscResp;
|
||||
|
||||
#define CHSC_MIN_RESP_LEN 0x0008
|
||||
|
||||
@@ -546,6 +550,7 @@ out:
|
||||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int chsc_sei_nt0_get_event(void *res)
|
||||
{
|
||||
/* no events yet */
|
||||
@@ -557,6 +562,7 @@ static int chsc_sei_nt0_have_event(void)
|
||||
/* no events yet */
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
static int chsc_sei_nt2_get_event(void *res)
|
||||
|
||||
Reference in New Issue
Block a user