aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-09-22 10:29:42 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-09-22 10:29:42 -0500
commit9ba2a054db309646946d7e01f87693b09a6bdb11 (patch)
treee71dfdc6056c7515206c52dbbaecfb933a813de8
parentbdd2672109caa5cbdd955ef5c7a05b49a6b44fbe (diff)
parent7b0a03a1eab52ed2f59c8e4cb2210ee74433a820 (diff)
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
-rw-r--r--cmd.c2
-rwxr-xr-xconfigure4
-rw-r--r--cpu-all.h1
-rw-r--r--exec.c4
-rw-r--r--hw/xen_nic.c1
-rw-r--r--hw/xics.c2
-rw-r--r--libcacard/Makefile2
-rw-r--r--qemu-thread-posix.c2
-rw-r--r--qemu-thread-win32.c2
-rw-r--r--target-i386/cpu.h5
-rw-r--r--target-i386/translate.c5
-rw-r--r--trace-events2
-rw-r--r--ui/keymaps.c2
-rw-r--r--ui/spice-display.c2
14 files changed, 9 insertions, 27 deletions
diff --git a/cmd.c b/cmd.c
index ecca16739..f77897e00 100644
--- a/cmd.c
+++ b/cmd.c
@@ -389,7 +389,7 @@ cvtnum(
if (sp[1] != '\0')
return -1LL;
- c = tolower(*sp);
+ c = qemu_tolower(*sp);
switch (c) {
default:
return i;
diff --git a/configure b/configure
index 414317af0..9ab3ab4eb 100755
--- a/configure
+++ b/configure
@@ -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
##########################################
diff --git a/cpu-all.h b/cpu-all.h
index f5c82cdeb..42a5fa0a7 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -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;
diff --git a/exec.c b/exec.c
index c1e045d32..1e6f732d1 100644
--- a/exec.c
+++ b/exec.c
@@ -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 aeca8da96..ef2a2d699 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>
diff --git a/hw/xics.c b/hw/xics.c
index 9bf82aaf2..80e064eaa 100644
--- a/hw/xics.c
+++ b/hw/xics.c
@@ -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 81d9eb520..a14556904 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 2bd02efef..ac3c0c9d1 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 a27332e66..db8e74472 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 4a6f675f9..ae36489a9 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 b9667628a..b894e97e1 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 829dc927c..a31d9aa2a 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 81003bb5c..f54a11437 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 3a92a126e..6c302a390 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"