trivial patches for 2014-02-02
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iJwEAAECAAYFAlLubjkACgkQUlPFrXTwyDgobgP/QbwR60EJZOGb35yWHsl9GjHl f3wa2c1II8YjG/6+2ssg5OiO7CrK8k+zEzZOgInMHLYeIK/T0iGut5UqyG1oIM2J VtaygdSlIZEz2Mgi+lnfsuXEEO+LRMuY8zIc3Rc2ATAp+yKj5JRx8Ui4UgrPsqGw QUaubf2Z8YkNYarnhAw= =gX3d -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-02-02' into staging trivial patches for 2014-02-02 # gpg: Signature made Sun 02 Feb 2014 16:11:37 GMT using RSA key ID 74F0C838 # gpg: Good signature from "Michael Tokarev <mjt@tls.msk.ru>" # gpg: aka "Michael Tokarev <mjt@corpit.ru>" # gpg: aka "Michael Tokarev <mjt@debian.org>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 6EE1 95D1 886E 8FFB 810D 4324 457C E0A0 8044 65C5 # Subkey fingerprint: E190 8639 3B10 B51B AC2C 8B73 5253 C5AD 74F0 C838 * remotes/mjt/tags/trivial-patches-2014-02-02: tests/.gitignore: Ignore tests/check-qom-interface hw/ppc: Remove unused defines readline: Add missing GCC_FMT_ATTR tcg/s390: Remove sigill_handler i386: Add missing include file for QEMU_PACKED osdep: drop unused #include "trace.h" qemu 1.7.0 does not build on NetBSD Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
31db5b3638
@ -18,11 +18,10 @@
|
|||||||
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "qemu-common.h"
|
||||||
#include "bios-linker-loader.h"
|
#include "bios-linker-loader.h"
|
||||||
#include "hw/nvram/fw_cfg.h"
|
#include "hw/nvram/fw_cfg.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include "qemu/bswap.h"
|
#include "qemu/bswap.h"
|
||||||
|
|
||||||
#define BIOS_LINKER_LOADER_FILESZ FW_CFG_MAX_FILE_PATH
|
#define BIOS_LINKER_LOADER_FILESZ FW_CFG_MAX_FILE_PATH
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
#include "qemu/log.h"
|
#include "qemu/log.h"
|
||||||
#include "exec/address-spaces.h"
|
#include "exec/address-spaces.h"
|
||||||
|
|
||||||
//#define DEBUG_MMIO
|
|
||||||
//#define DEBUG_UNASSIGNED
|
|
||||||
#define DEBUG_UIC
|
#define DEBUG_UIC
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,23 +30,26 @@
|
|||||||
#define SUFFIX q
|
#define SUFFIX q
|
||||||
#define LSUFFIX q
|
#define LSUFFIX q
|
||||||
#define SDATA_TYPE int64_t
|
#define SDATA_TYPE int64_t
|
||||||
|
#define DATA_TYPE uint64_t
|
||||||
#elif DATA_SIZE == 4
|
#elif DATA_SIZE == 4
|
||||||
#define SUFFIX l
|
#define SUFFIX l
|
||||||
#define LSUFFIX l
|
#define LSUFFIX l
|
||||||
#define SDATA_TYPE int32_t
|
#define SDATA_TYPE int32_t
|
||||||
|
#define DATA_TYPE uint32_t
|
||||||
#elif DATA_SIZE == 2
|
#elif DATA_SIZE == 2
|
||||||
#define SUFFIX w
|
#define SUFFIX w
|
||||||
#define LSUFFIX uw
|
#define LSUFFIX uw
|
||||||
#define SDATA_TYPE int16_t
|
#define SDATA_TYPE int16_t
|
||||||
|
#define DATA_TYPE uint16_t
|
||||||
#elif DATA_SIZE == 1
|
#elif DATA_SIZE == 1
|
||||||
#define SUFFIX b
|
#define SUFFIX b
|
||||||
#define LSUFFIX ub
|
#define LSUFFIX ub
|
||||||
#define SDATA_TYPE int8_t
|
#define SDATA_TYPE int8_t
|
||||||
|
#define DATA_TYPE uint8_t
|
||||||
#else
|
#else
|
||||||
#error unsupported data size
|
#error unsupported data size
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DATA_TYPE glue(u, SDATA_TYPE)
|
|
||||||
|
|
||||||
/* For the benefit of TCG generated code, we want to avoid the complication
|
/* For the benefit of TCG generated code, we want to avoid the complication
|
||||||
of ABI-specific return type promotion and always return a value extended
|
of ABI-specific return type promotion and always return a value extended
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
#define READLINE_MAX_CMDS 64
|
#define READLINE_MAX_CMDS 64
|
||||||
#define READLINE_MAX_COMPLETIONS 256
|
#define READLINE_MAX_COMPLETIONS 256
|
||||||
|
|
||||||
typedef void ReadLinePrintfFunc(void *opaque, const char *fmt, ...);
|
typedef void GCC_FMT_ATTR(2, 3) ReadLinePrintfFunc(void *opaque,
|
||||||
|
const char *fmt, ...);
|
||||||
typedef void ReadLineFlushFunc(void *opaque);
|
typedef void ReadLineFlushFunc(void *opaque);
|
||||||
typedef void ReadLineFunc(void *opaque, const char *str,
|
typedef void ReadLineFunc(void *opaque, const char *str,
|
||||||
void *readline_opaque);
|
void *readline_opaque);
|
||||||
|
@ -4888,7 +4888,8 @@ static void sortcmdlist(void)
|
|||||||
/* These functions just adapt the readline interface in a typesafe way. We
|
/* These functions just adapt the readline interface in a typesafe way. We
|
||||||
* could cast function pointers but that discards compiler checks.
|
* could cast function pointers but that discards compiler checks.
|
||||||
*/
|
*/
|
||||||
static void monitor_readline_printf(void *opaque, const char *fmt, ...)
|
static void GCC_FMT_ATTR(2, 3) monitor_readline_printf(void *opaque,
|
||||||
|
const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
|
@ -219,7 +219,8 @@ static char *get_prompt(void)
|
|||||||
return prompt;
|
return prompt;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void readline_printf_func(void *opaque, const char *fmt, ...)
|
static void GCC_FMT_ATTR(2, 3) readline_printf_func(void *opaque,
|
||||||
|
const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
|
@ -2214,25 +2214,6 @@ static const TCGTargetOpDef s390_op_defs[] = {
|
|||||||
{ -1 },
|
{ -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* ??? Linux kernels provide an AUXV entry AT_HWCAP that provides most of
|
|
||||||
this information. However, getting at that entry is not easy this far
|
|
||||||
away from main. Our options are: start searching from environ, but
|
|
||||||
that fails as soon as someone does a setenv in between. Read the data
|
|
||||||
from /proc/self/auxv. Or do the probing ourselves. The only thing
|
|
||||||
extra that AT_HWCAP gives us is HWCAP_S390_HIGH_GPRS, which indicates
|
|
||||||
that the kernel saves all 64-bits of the registers around traps while
|
|
||||||
in 31-bit mode. But this is true of all "recent" kernels (ought to dig
|
|
||||||
back and see from when this might not be true). */
|
|
||||||
|
|
||||||
#include <signal.h>
|
|
||||||
|
|
||||||
static volatile sig_atomic_t got_sigill;
|
|
||||||
|
|
||||||
static void sigill_handler(int sig)
|
|
||||||
{
|
|
||||||
got_sigill = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void query_facilities(void)
|
static void query_facilities(void)
|
||||||
{
|
{
|
||||||
unsigned long hwcap = qemu_getauxval(AT_HWCAP);
|
unsigned long hwcap = qemu_getauxval(AT_HWCAP);
|
||||||
|
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
@ -4,6 +4,7 @@ check-qint
|
|||||||
check-qjson
|
check-qjson
|
||||||
check-qlist
|
check-qlist
|
||||||
check-qstring
|
check-qstring
|
||||||
|
check-qom-interface
|
||||||
test-aio
|
test-aio
|
||||||
test-bitops
|
test-bitops
|
||||||
test-throttle
|
test-throttle
|
||||||
|
@ -46,7 +46,6 @@ extern int madvise(caddr_t, size_t, int);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "qemu-common.h"
|
#include "qemu-common.h"
|
||||||
#include "trace.h"
|
|
||||||
#include "qemu/sockets.h"
|
#include "qemu/sockets.h"
|
||||||
#include "monitor/monitor.h"
|
#include "monitor/monitor.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user