Trivial branch for 6.0 patches
The following changes since commit 9cd69f1a270235b652766f00b94114f48a2d603f:
Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2021-01-25=
-1' into staging (2021-01-26 09:51:02 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/trivial-branch-for-6.0-pull-request
for you to fetch changes up to 77182df19f874adfc4ac98248606c154764baaa8:
target/rx: Fix compiler errors for build with sanitizers (2021-01-29 09:31:=
53 +0100)
----------------------------------------------------------------
Trivial patches 20210129
----------------------------------------------------------------
Doug Evans (1):
net/slirp.c: Fix spelling error in error message
Greg Kurz (1):
MAINTAINERS: Update 9pfs tree URL
Philippe Mathieu-Daud=C3=A9 (1):
tcg/tci: Restrict tci_write_reg16() to 64-bit hosts
Stefan Weil (1):
target/rx: Fix compiler errors for build with sanitizers
MAINTAINERS | 2 +- net/slirp.c | 2 +- target/rx/op_helper.c | 12 ++++++------ tcg/tci.c | 2 ++ 4 files changed, 10 insertions(+), 8 deletions(-)
--=20
2.29.2
[PULL 1/4] MAINTAINERS: Update 9pfs tree URL
From: Greg Kurz <[email protected]>
I've already moved my repositories to gitlab for extra CI coverage, and I won't use the ones at github anymore.
Message-Id: <[email protected]>
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -1828,7 +1828,7 @@ X: hw/9pfs/xen-9p* F: fsdev/ F: docs/interop/virtfs-proxy-helper.rst F: tests/qtest/virtio-9p-test.c -T: git https://github.com/gkurz/qemu.git 9p-next +T: git https://gitlab.com/gkurz/qemu.git 9p-next virtio-blk M: Stefan Hajnoczi <[email protected]>
Signature · 1 line
2.29.2
[PULL 3/4] net/slirp.c: Fix spelling error in error message
In reply to Laurent VivierFrom: Doug Evans <[email protected]>
DNS should be DHCP
Message-Id: <[email protected]>
--- net/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/slirp.c +1 -1
@@ -473,7 +473,7 @@ static int net_slirp_init(NetClientState *peer, const char *model,return -1 ; }if (dhcp.s_addr == host.s_addr || dhcp.s_addr == dns.s_addr) { -error_setg (errp,"DNS must be different from host and DNS" ); +error_setg (errp,"DHCP must be different from host and DNS" );return -1 ; }
Signature · 1 line
2.29.2
[PULL 2/4] tcg/tci: Restrict tci_write_reg16() to 64-bit hosts
In reply to Laurent VivierFrom: Philippe Mathieu-Daudé <[email protected]>
Restrict tci_write_reg16() to 64-bit hosts to fix on 32-bit ones:
[520/1115] Compiling C object libqemu-arm-linux-user.fa.p/tcg_tci.c.o
FAILED: libqemu-arm-linux-user.fa.p/tcg_tci.c.o
tcg/tci.c:132:1: error: 'tci_write_reg16' defined but not used [-Werror=unused-function]
tci_write_reg16(tcg_target_ulong *regs, TCGReg index, uint16_t value) ^~~~~~~~~~~~~~~
Message-Id: <[email protected]>
--- tcg/tci.c | 2 ++ 1 file changed, 2 insertions(+)
tcg/tci.c +2 -0
@@ -128,11 +128,13 @@ static void tci_write_reg8(tcg_target_ulong *regs, TCGReg index, uint8_t value)tci_write_reg (regs, index, value); } +#if TCG_TARGET_REG_BITS ==64 static void tci_write_reg16 (tcg_target_ulong *regs,TCGReg index,uint16_t value) {tci_write_reg (regs, index, value); } +#endif static void tci_write_reg32 (tcg_target_ulong *regs,TCGReg index,uint32_t value)
Signature · 1 line
2.29.2
[PULL 4/4] target/rx: Fix compiler errors for build with sanitizers
In reply to Laurent VivierFrom: Stefan Weil <[email protected]>
gcc (Debian 10.2.1-6) 10.2.1 20210110 aborts builds with enabled sanitizers:
../../../target/rx/op_helper.c: In function ‘helper_scmpu’:../../../target/rx/op_helper.c:213:24: error: ‘tmp1’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
213 | env->psw_c = (tmp0 >= tmp1);
| ~~~~~~^~~~~~~~
../../../target/rx/op_helper.c:213:24: error: ‘tmp0’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
../../../target/rx/op_helper.c: In function ‘helper_suntil’:
../../../target/rx/op_helper.c:299:23: error: ‘tmp’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
299 | env->psw_c = (tmp <= env->regs[2]);
| ~~~~~^~~~~~~~~~~~~~~~
../../../target/rx/op_helper.c: In function ‘helper_swhile’:
../../../target/rx/op_helper.c:318:23: error: ‘tmp’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
318 | env->psw_c = (tmp <= env->regs[2]);
| ~~~~~^~~~~~~~~~~~~~~~Rewriting the code fixes those errors.
Message-Id: <[email protected]>
--- target/rx/op_helper.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
target/rx/op_helper.c +6 -6
@@ -201,14 +201,14 @@ void helper_scmpu(CPURXState *env)if (env->regs[3 ] ==0 ) {return ; } -while (env->regs[3 ] !=0 ) { +do { tmp0 =cpu_ldub_data_ra (env, env->regs[1 ]++,GETPC ()); tmp1 =cpu_ldub_data_ra (env, env->regs[2 ]++,GETPC ()); env->regs[3 ]--;if (tmp0 != tmp1 || tmp0 =='\0' ) {break ; } - } + }while (env->regs[3 ] !=0 ); env->psw_z = tmp0 - tmp1; env->psw_c = (tmp0 >= tmp1); }
@@ -287,14 +287,14 @@ void helper_suntil(CPURXState *env, uint32_t sz)if (env->regs[3 ] ==0 ) {return ; } -while (env->regs[3 ] !=0 ) { +do { tmp = cpu_ldufn[sz](env, env->regs[1 ],GETPC ()); env->regs[1 ] +=1 << sz; env->regs[3 ]--;if (tmp == env->regs[2 ]) {break ; } - } + }while (env->regs[3 ] !=0 ); env->psw_z = tmp - env->regs[2 ]; env->psw_c = (tmp <= env->regs[2 ]); }
@@ -306,14 +306,14 @@ void helper_swhile(CPURXState *env, uint32_t sz)if (env->regs[3 ] ==0 ) {return ; } -while (env->regs[3 ] !=0 ) { +do { tmp = cpu_ldufn[sz](env, env->regs[1 ],GETPC ()); env->regs[1 ] +=1 << sz; env->regs[3 ]--;if (tmp != env->regs[2 ]) {break ; } - } + }while (env->regs[3 ] !=0 ); env->psw_z = env->regs[3 ]; env->psw_c = (tmp <= env->regs[2 ]); }
Signature · 1 line
2.29.2
Peter Maydell
AppliedQuoted 12 lines · Laurent Vivier
The following changes since commit
9cd69f1a270235b652766f00b94114f48a2d603f:Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2021-01-25=
-1' into staging (2021-01-26 09:51:02 +0000)are available in the Git repository at:
git://github.com/vivier/qemu.gittags/trivial-branch-for-6.0-pull-requestfor you to fetch changes up to
77182df19f874adfc4ac98248606c154764baaa8:
Quoted 7 lines
target/rx: Fix compiler errors for build with sanitizers (2021-01-29 09:31:=
53 +0100)----------------------------------------------------------------
Trivial patches 20210129----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.0
for any user-visible changes.
-- PMM