diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-22 10:29:42 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-09-22 10:29:42 -0500 |
commit | 9ba2a054db309646946d7e01f87693b09a6bdb11 (patch) | |
tree | e71dfdc6056c7515206c52dbbaecfb933a813de8 | |
parent | bdd2672109caa5cbdd955ef5c7a05b49a6b44fbe (diff) | |
parent | 7b0a03a1eab52ed2f59c8e4cb2210ee74433a820 (diff) |
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
-rw-r--r-- | cmd.c | 2 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | cpu-all.h | 1 | ||||
-rw-r--r-- | exec.c | 4 | ||||
-rw-r--r-- | hw/xen_nic.c | 1 | ||||
-rw-r--r-- | hw/xics.c | 2 | ||||
-rw-r--r-- | libcacard/Makefile | 2 | ||||
-rw-r--r-- | qemu-thread-posix.c | 2 | ||||
-rw-r--r-- | qemu-thread-win32.c | 2 | ||||
-rw-r--r-- | target-i386/cpu.h | 5 | ||||
-rw-r--r-- | target-i386/translate.c | 5 | ||||
-rw-r--r-- | trace-events | 2 | ||||
-rw-r--r-- | ui/keymaps.c | 2 | ||||
-rw-r--r-- | ui/spice-display.c | 2 |
14 files changed, 9 insertions, 27 deletions
@@ -389,7 +389,7 @@ cvtnum( if (sp[1] != '\0') return -1LL; - c = tolower(*sp); + c = qemu_tolower(*sp); switch (c) { default: return i; @@ -1340,8 +1340,8 @@ fi # pkg-config probe if ! has $pkg_config; then - echo warning: proceeding without "$pkg_config" >&2 - pkg_config=/bin/false + echo "Error: pkg-config binary '$pkg_config' not found" + exit 1 fi ########################################## @@ -290,7 +290,6 @@ extern unsigned long reserved_va; /* ??? These should be the larger of unsigned long and target_ulong. */ extern unsigned long qemu_real_host_page_size; -extern unsigned long qemu_host_page_bits; extern unsigned long qemu_host_page_size; extern unsigned long qemu_host_page_mask; @@ -183,7 +183,6 @@ typedef struct PageDesc { #define V_L1_SHIFT (L1_MAP_ADDR_SPACE_BITS - TARGET_PAGE_BITS - V_L1_BITS) unsigned long qemu_real_host_page_size; -unsigned long qemu_host_page_bits; unsigned long qemu_host_page_size; unsigned long qemu_host_page_mask; @@ -274,9 +273,6 @@ static void page_init(void) qemu_host_page_size = qemu_real_host_page_size; if (qemu_host_page_size < TARGET_PAGE_SIZE) qemu_host_page_size = TARGET_PAGE_SIZE; - qemu_host_page_bits = 0; - while ((1 << qemu_host_page_bits) < qemu_host_page_size) - qemu_host_page_bits++; qemu_host_page_mask = ~(qemu_host_page_size - 1); #if defined(CONFIG_BSD) && defined(CONFIG_USER_ONLY) diff --git a/hw/xen_nic.c b/hw/xen_nic.c index aeca8da96b..ef2a2d6997 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -25,7 +25,6 @@ #include <inttypes.h> #include <fcntl.h> #include <errno.h> -#include <pthread.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/types.h> @@ -29,8 +29,6 @@ #include "hw/spapr.h" #include "hw/xics.h" -#include <pthread.h> - /* * ICP: Presentation layer */ diff --git a/libcacard/Makefile b/libcacard/Makefile index 81d9eb5206..a145569044 100644 --- a/libcacard/Makefile +++ b/libcacard/Makefile @@ -27,6 +27,8 @@ clean: rm -Rf .libs all: vscclient +# Dummy command so that make thinks it has done something + @true ######################################################################### # Rules for building libcacard standalone library diff --git a/qemu-thread-posix.c b/qemu-thread-posix.c index 2bd02efeff..ac3c0c9d14 100644 --- a/qemu-thread-posix.c +++ b/qemu-thread-posix.c @@ -22,7 +22,7 @@ static void error_exit(int err, const char *msg) { fprintf(stderr, "qemu: %s: %s\n", msg, strerror(err)); - exit(1); + abort(); } void qemu_mutex_init(QemuMutex *mutex) diff --git a/qemu-thread-win32.c b/qemu-thread-win32.c index a27332e669..db8e744729 100644 --- a/qemu-thread-win32.c +++ b/qemu-thread-win32.c @@ -24,7 +24,7 @@ static void error_exit(int err, const char *msg) NULL, err, 0, (LPTSTR)&pstr, 2, NULL); fprintf(stderr, "qemu: %s: %s\n", msg, pstr); LocalFree(pstr); - exit(1); + abort(); } void qemu_mutex_init(QemuMutex *mutex) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 4a6f675f98..ae36489a9a 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -991,11 +991,6 @@ static inline int cpu_mmu_index (CPUState *env) /* translate.c */ void optimize_flags_init(void); -typedef struct CCTable { - int (*compute_all)(void); /* return all the flags */ - int (*compute_c)(void); /* return the C flag */ -} CCTable; - #if defined(CONFIG_USER_ONLY) static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) { diff --git a/target-i386/translate.c b/target-i386/translate.c index b9667628a0..b894e97e15 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -7641,11 +7641,6 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) void optimize_flags_init(void) { -#if TCG_TARGET_REG_BITS == 32 - assert(sizeof(CCTable) == (1 << 3)); -#else - assert(sizeof(CCTable) == (1 << 4)); -#endif cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env"); cpu_cc_op = tcg_global_mem_new_i32(TCG_AREG0, offsetof(CPUState, cc_op), "cc_op"); diff --git a/trace-events b/trace-events index 829dc927cf..a31d9aa2ae 100644 --- a/trace-events +++ b/trace-events @@ -455,7 +455,7 @@ milkymist_vgafb_memory_write(uint32_t addr, uint32_t value) "addr %08x value %08 mipsnet_send(uint32_t size) "sending len=%u" mipsnet_receive(uint32_t size) "receiving len=%u" mipsnet_read(uint64_t addr, uint32_t val) "read addr=0x%" PRIx64 " val=0x%x" -mipsnet_write(uint64_t addr, uint64_t val) "write addr=0x%" PRIx64 " val=0x%" PRIx64 +mipsnet_write(uint64_t addr, uint64_t val) "write addr=0x%" PRIx64 " val=0x%" PRIx64 "" mipsnet_irq(uint32_t isr, uint32_t intctl) "set irq to %d (%02x)" # xen-all.c diff --git a/ui/keymaps.c b/ui/keymaps.c index 81003bb5ca..f54a11437b 100644 --- a/ui/keymaps.c +++ b/ui/keymaps.c @@ -146,7 +146,7 @@ static kbd_layout_t *parse_keyboard_layout(const name2keysym_t *table, if (rest && strstr(rest, "addupper")) { char *c; for (c = line; *c; c++) - *c = toupper(*c); + *c = qemu_toupper(*c); keysym = get_keysym(table, line); if (keysym) add_keysym(line, keysym, keycode | SCANCODE_SHIFT, k); diff --git a/ui/spice-display.c b/ui/spice-display.c index 3a92a126e5..6c302a3909 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -15,8 +15,6 @@ * along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <pthread.h> - #include "qemu-common.h" #include "qemu-spice.h" #include "qemu-timer.h" |