Skip to contentSkip to conversation

Trivial patches for September 22 to October 5 2011

GIT PULL New Stefan Hajnoczi 2 participants 9 messages Oct 5, 2011 – Oct 10, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7:

etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200)

are available in the git repository at:
ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches

Andreas Färber (1):
target-arm: Fix typo

Antony Pavlov (2):
gt64xxx.c: fix length modifier in DPRINTF format string gt64xxx.c: remove reference to non-existing ISD_handle field

Jan Kiszka (1):
lsi: Fix tag reference in debug print

Paolo Bonzini (1):
makefile: extract tools-obj-y

Stefan Weil (2):
Fix mismatching allocation and deallocation
linux-user: Remove unused code

 Makefile            |    9 +++++----
 console.c           |    2 +-
 hw/gt64xxx.c        |   13 +++++++------
 hw/lsi53c895a.c     |    2 +-
 linux-user/signal.c |    5 +----
 target-arm/helper.c |    2 +-
 6 files changed, 16 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.6.3
#1 lore raw

PATCH 1/7 makefile: extract tools-obj-y

From: Paolo Bonzini <[email protected]>

---
 Makefile |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
Makefile +5 -4
index 6ed3194..5723108 100644
@@ -145,11 +145,12 @@ endif
 qemu-img.o: qemu-img-cmds.h
 qemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o cmd.o qemu-ga.o: $(GENERATED_HEADERS)
 
-qemu-img$(EXESUF): qemu-img.o qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
+tools-obj-y = qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) \
+        $(block-obj-y) $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
 
-qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
-
-qemu-io$(EXESUF): qemu-io.o cmd.o qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) $(block-obj-y) $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
+qemu-img$(EXESUF): qemu-img.o $(tools-obj-y)
+qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y)
+qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y)
 
 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
 	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $@")
Signature · 1 line
1.7.6.3
#2 lore raw

PATCH 2/7 gt64xxx.c: fix length modifier in DPRINTF format string

In reply to Stefan Hajnoczi

From: Antony Pavlov <[email protected]>

The commit fc2bf44972349b078d8310466c3866615500e67f changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so we need to change the corresponding length modifier from "%x" to "%" PRIx64.

---
 hw/gt64xxx.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
hw/gt64xxx.c +4 -4
index 1c34253..73454ff 100644
@@ -543,19 +543,19 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr,
         /* not really implemented */
         s->regs[saddr] = ~(~(s->regs[saddr]) | ~(val & 0xfffffffe));
         s->regs[saddr] |= !!(s->regs[saddr] & 0xfffffffe);
-        DPRINTF("INTRCAUSE %x\n", val);
+        DPRINTF("INTRCAUSE %" PRIx64 "\n", val);
         break;
     case GT_INTRMASK:
         s->regs[saddr] = val & 0x3c3ffffe;
-        DPRINTF("INTRMASK %x\n", val);
+        DPRINTF("INTRMASK %" PRIx64 "\n", val);
         break;
     case GT_PCI0_ICMASK:
         s->regs[saddr] = val & 0x03fffffe;
-        DPRINTF("ICMASK %x\n", val);
+        DPRINTF("ICMASK %" PRIx64 "\n", val);
         break;
     case GT_PCI0_SERR0MASK:
         s->regs[saddr] = val & 0x0000003f;
-        DPRINTF("SERR0MASK %x\n", val);
+        DPRINTF("SERR0MASK %" PRIx64 "\n", val);
         break;
 
     /* Reserved when only PCI_0 is configured. */
Signature · 1 line
1.7.6.3
#5 lore raw

PATCH 5/7 target-arm: Fix typo

In reply to Stefan Hajnoczi

From: Andreas Färber <[email protected]>

The command line option is called -kernel, not -kenrel.

---
 target-arm/helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-arm/helper.c +1 -1
index d3a3ba2..e2428eb 100644
@@ -298,7 +298,7 @@ void cpu_reset(CPUARMState *env)
         if (rom) {
             /* We should really use ldl_phys here, in case the guest
                modified flash and reset itself.  However images
-               loaded via -kenrel have not been copied yet, so load the
+               loaded via -kernel have not been copied yet, so load the
                values directly from there.  */
             env->regs[13] = ldl_p(rom);
             pc = ldl_p(rom + 4);
Signature · 1 line
1.7.6.3
#6 lore raw

PATCH 6/7 Fix mismatching allocation and deallocation

In reply to Stefan Hajnoczi

From: Stefan Weil <[email protected]>

This error was reported by cppcheck.

---
 console.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
console.c +1 -1
index 6dfcc47..e43de92 100644
@@ -1538,7 +1538,7 @@ int text_console_init(QemuOpts *opts, CharDriverState **_chr)
     }
 
     if (!s) {
-        free(chr);
+        g_free(chr);
         return -EBUSY;
     }
 
Signature · 1 line
1.7.6.3
#7 lore raw

PATCH 7/7 linux-user: Remove unused code

In reply to Stefan Hajnoczi

From: Stefan Weil <[email protected]>

The code is unused since 8 years, so remove it.

---
 linux-user/signal.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
linux-user/signal.c +1 -4
index 89276eb..40c5eb18 100644
@@ -1274,10 +1274,7 @@ setup_return(CPUState *env, struct target_sigaction *ka,
 
 		if (__put_user(retcodes[idx], rc))
 			return 1;
-#if 0
-		flush_icache_range((abi_ulong)rc,
-				   (abi_ulong)(rc + 1));
-#endif
+
 		retcode = rc_addr + thumb;
 	}
 
Signature · 1 line
1.7.6.3
#4 lore raw

PATCH 4/7 lsi: Fix tag reference in debug print

In reply to Stefan Hajnoczi

From: Jan Kiszka <[email protected]>

---
 hw/lsi53c895a.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/lsi53c895a.c +1 -1
index 75a03a7..e077ec0 100644
@@ -697,7 +697,7 @@ static int lsi_queue_req(LSIState *s, SCSIRequest *req, uint32_t len)
         lsi_reselect(s, p);
         return 0;
     } else {
-        DPRINTF("Queueing IO tag=0x%x\n", tag);
+        DPRINTF("Queueing IO tag=0x%x\n", p->tag);
         p->pending = len;
         return 1;
     }
Signature · 1 line
1.7.6.3
#3 lore raw

PATCH 3/7 gt64xxx.c: remove reference to non-existing ISD_handle field

In reply to Stefan Hajnoczi

From: Antony Pavlov <[email protected]>

The commit fc2bf44972349b078d8310466c3866615500e67f removed ISD_handle field from struct GT64120State, so remove the field from DPRINTF too.

---
 hw/gt64xxx.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
hw/gt64xxx.c +3 -2
index 73454ff..432683a 100644
@@ -275,8 +275,9 @@ static void gt64120_isd_mapping(GT64120State *s)
     check_reserved_space(&start, &length);
     length = 0x1000;
     /* Map new address */
-    DPRINTF("ISD: "TARGET_FMT_plx"@"TARGET_FMT_plx" -> "TARGET_FMT_plx"@"TARGET_FMT_plx", %x\n", s->ISD_length, s->ISD_start,
-            length, start, s->ISD_handle);
+    DPRINTF("ISD: "TARGET_FMT_plx"@"TARGET_FMT_plx
+        " -> "TARGET_FMT_plx"@"TARGET_FMT_plx"\n",
+        s->ISD_length, s->ISD_start, length, start);
     s->ISD_start = start;
     s->ISD_length = length;
     memory_region_add_subregion(get_system_memory(), s->ISD_start, &s->ISD_mem);
Signature · 1 line
1.7.6.3
#8 lore raw
In reply to Stefan Hajnoczi
Quoted 6 lines · Stefan Hajnoczi

The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7:

   etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200)

are available in the git repository at:
ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches

Pulled. Thanks.

Regards,

Anthony Liguori

Quoted 26 lines

Andreas Färber (1):
target-arm: Fix typo

Antony Pavlov (2):
gt64xxx.c: fix length modifier in DPRINTF format string gt64xxx.c: remove reference to non-existing ISD_handle field

Jan Kiszka (1):
lsi: Fix tag reference in debug print

Paolo Bonzini (1):
makefile: extract tools-obj-y

Stefan Weil (2):
Fix mismatching allocation and deallocation
linux-user: Remove unused code

  Makefile            |    9 +++++----
  console.c           |    2 +-
  hw/gt64xxx.c        |   13 +++++++------
  hw/lsi53c895a.c     |    2 +-
  linux-user/signal.c |    5 +----
  target-arm/helper.c |    2 +-
  6 files changed, 16 insertions(+), 17 deletions(-)