Fix MSVC build and remove warning about unused functions

This commit is contained in:
mio
2021-12-30 00:26:25 +01:00
parent 298795a9f8
commit ab4ef2e1de
5 changed files with 36 additions and 30 deletions

View File

@@ -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 */