[Spice-commits] 2 commits - qemu-sockets.c tcg/ppc
Gerd Hoffmann
kraxel at kemper.freedesktop.org
Wed Nov 21 05:47:05 PST 2012
qemu-sockets.c | 5 +++--
tcg/ppc/tcg-target.c | 12 ++++++++----
2 files changed, 11 insertions(+), 6 deletions(-)
New commits:
commit 1ccbc2851282564308f790753d7158487b6af8e2
Author: Anthony PERARD <anthony.perard at citrix.com>
Date: Fri Nov 16 04:08:14 2012 +0000
qemu-sockets: Fix parsing of the inet option 'to'.
Having a qemu command line argument like "-vnc 127.0.0.1:0,to=99" is broken.
This have been break with commit 879e45c72da1569e07fbbc6a1aa2a708ea796044.
Signed-off-by: Anthony PERARD <anthony.perard at citrix.com>
Signed-off-by: Stefan Hajnoczi <stefanha at redhat.com>
Signed-off-by: malc <av1474 at comtv.ru>
diff --git a/qemu-sockets.c b/qemu-sockets.c
index cfed9c5..d314cf1 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -529,8 +529,9 @@ static InetSocketAddress *inet_parse(const char *str, Error **errp)
optstr = str + pos;
h = strstr(optstr, ",to=");
if (h) {
- if (1 != sscanf(str, "%d%n", &to, &pos) ||
- (str[pos] != '\0' && str[pos] != ',')) {
+ h += 4;
+ if (sscanf(h, "%d%n", &to, &pos) != 1 ||
+ (h[pos] != '\0' && h[pos] != ',')) {
error_setg(errp, "error parsing to= argument");
goto fail;
}
commit ecf51c9abe63eae282e5f912d9367ce75f36636a
Author: malc <av1474 at comtv.ru>
Date: Wed Nov 21 10:55:28 2012 +0400
tcg/ppc: Fix !softmmu case
Signed-off-by: malc <av1474 at comtv.ru>
diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c
index a42a04a..d72d396 100644
--- a/tcg/ppc/tcg-target.c
+++ b/tcg/ppc/tcg-target.c
@@ -628,9 +628,9 @@ static void tcg_out_tlb_check (TCGContext *s, int r0, int r1, int r2,
static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)
{
- int addr_reg, addr_reg2, data_reg, data_reg2, r0, r1, rbase, bswap;
+ int addr_reg, data_reg, data_reg2, r0, r1, rbase, bswap;
#ifdef CONFIG_SOFTMMU
- int mem_index, s_bits, r2;
+ int mem_index, s_bits, r2, addr_reg2;
uint8_t *label_ptr;
#endif
@@ -741,9 +741,9 @@ static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)
static void tcg_out_qemu_st (TCGContext *s, const TCGArg *args, int opc)
{
- int addr_reg, addr_reg2, r0, r1, data_reg, data_reg2, bswap, rbase;
+ int addr_reg, r0, r1, data_reg, data_reg2, bswap, rbase;
#ifdef CONFIG_SOFTMMU
- int mem_index, r2;
+ int mem_index, r2, addr_reg2;
uint8_t *label_ptr;
#endif
@@ -979,6 +979,7 @@ void tcg_out_tb_finalize(TCGContext *s)
}
#endif
+#ifdef CONFIG_SOFTMMU
static void emit_ldst_trampoline (TCGContext *s, const void *ptr)
{
tcg_out32 (s, MFSPR | RT (3) | LR);
@@ -987,6 +988,7 @@ static void emit_ldst_trampoline (TCGContext *s, const void *ptr)
tcg_out_mov (s, TCG_TYPE_I32, 3, TCG_AREG0);
tcg_out_b (s, 0, (tcg_target_long) ptr);
}
+#endif
static void tcg_target_qemu_prologue (TCGContext *s)
{
@@ -1049,6 +1051,7 @@ static void tcg_target_qemu_prologue (TCGContext *s)
tcg_out32 (s, ADDI | RT (1) | RA (1) | frame_size);
tcg_out32 (s, BCLR | BO_ALWAYS);
+#ifdef CONFIG_SOFTMMU
for (i = 0; i < 4; ++i) {
ld_trampolines[i] = s->code_ptr;
emit_ldst_trampoline (s, qemu_ld_helpers[i]);
@@ -1056,6 +1059,7 @@ static void tcg_target_qemu_prologue (TCGContext *s)
st_trampolines[i] = s->code_ptr;
emit_ldst_trampoline (s, qemu_st_helpers[i]);
}
+#endif
}
static void tcg_out_ld (TCGContext *s, TCGType type, TCGReg ret, TCGReg arg1,
More information about the Spice-commits
mailing list