tcg patch queue
The following changes since commit 17e1e49814096a3daaa8e5a73acd56a0f30bdc18:
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2020-04-09 19:00:41 +0100)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20200412
for you to fetch changes up to a4e57084c16d5b0eff3651693fba04f26b30b551:
tcg/mips: mips sync* encode error (2020-04-12 14:07:07 -0700)
----------------------------------------------------------------
Fix tcg/mips barrier encoding
----------------------------------------------------------------
lixinyu (1):
tcg/mips: mips sync* encode error
tcg/mips/tcg-target.inc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
[PULL for-5.0 1/1] tcg/mips: mips sync* encode error
From: lixinyu <[email protected]>
OPC_SYNC_WMB, OPC_SYNC_MB, OPC_SYNC_ACQUIRE, OPC_SYNC_RELEASE and OPC_SYNC_RMB have wrong encode. According to the mips manual, their encode should be 'OPC_SYNC | 0x?? << 6' rather than 'OPC_SYNC | 0x?? << 5'. Wrong encode can lead illegal instruction errors. These instructions often appear with multi-threaded simulation.
Message-Id: <[email protected]>
--- tcg/mips/tcg-target.inc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
tcg/mips/tcg-target.inc.c +5 -5
@@ -404,11 +404,11 @@ typedef enum {/* MIPS r6 introduced names for weaker variants of SYNC. These are backward compatible to previous architecture revisions. */ -OPC_SYNC_WMB =OPC_SYNC |0x04 <<5 , -OPC_SYNC_MB =OPC_SYNC |0x10 <<5 , -OPC_SYNC_ACQUIRE =OPC_SYNC |0x11 <<5 , -OPC_SYNC_RELEASE =OPC_SYNC |0x12 <<5 , -OPC_SYNC_RMB =OPC_SYNC |0x13 <<5 , +OPC_SYNC_WMB =OPC_SYNC |0x04 <<6 , +OPC_SYNC_MB =OPC_SYNC |0x10 <<6 , +OPC_SYNC_ACQUIRE =OPC_SYNC |0x11 <<6 , +OPC_SYNC_RELEASE =OPC_SYNC |0x12 <<6 , +OPC_SYNC_RMB =OPC_SYNC |0x13 <<6 ,/* Aliases for convenience. */ ALIAS_PADD = sizeof(void *) == 4 ? OPC_ADDU : OPC_DADDU,
Signature · 1 line
2.20.1
Peter Maydell
AppliedQuoted 16 lines · Richard Henderson
The following changes since commit
17e1e49814096a3daaa8e5a73acd56a0f30bdc18:Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2020-04-09 19:00:41 +0100)
are available in the Git repository at:
https://github.com/rth7680/qemu.git tags/pull-tcg-20200412
for you to fetch changes up to
a4e57084c16d5b0eff3651693fba04f26b30b551:tcg/mips: mips sync* encode error (2020-04-12 14:07:07 -0700)
----------------------------------------------------------------
Fix tcg/mips barrier encoding
Quoted 6 lines
----------------------------------------------------------------
lixinyu (1):
tcg/mips: mips sync* encode errortcg/mips/tcg-target.inc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM