* [PULL for-5.0 0/1] tcg patch queue
@ 2020-04-12 21:11 Richard Henderson
2020-04-12 21:11 ` [PULL for-5.0 1/1] tcg/mips: mips sync* encode error Richard Henderson
2020-04-13 12:11 ` [PULL for-5.0 0/1] tcg patch queue Peter Maydell
0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 2020-04-12 21:11 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell
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(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL for-5.0 1/1] tcg/mips: mips sync* encode error
2020-04-12 21:11 [PULL for-5.0 0/1] tcg patch queue Richard Henderson
@ 2020-04-12 21:11 ` Richard Henderson
2020-04-13 12:11 ` [PULL for-5.0 0/1] tcg patch queue Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2020-04-12 21:11 UTC (permalink / raw)
To: qemu-devel
Cc: peter.maydell, Aleksandar Markovic, Philippe Mathieu-Daudé,
lixinyu
From: lixinyu <precinct@mail.ustc.edu.cn>
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.
Fixes: 6f0b99104a3 ("tcg/mips: Add support for fence")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: lixinyu <precinct@mail.ustc.edu.cn>
Message-Id: <20200411124612.12560-1-precinct@mail.ustc.edu.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
tcg/mips/tcg-target.inc.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tcg/mips/tcg-target.inc.c b/tcg/mips/tcg-target.inc.c
index 1da663ce84..4d32ebc1df 100644
--- a/tcg/mips/tcg-target.inc.c
+++ b/tcg/mips/tcg-target.inc.c
@@ -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,
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL for-5.0 0/1] tcg patch queue
2020-04-12 21:11 [PULL for-5.0 0/1] tcg patch queue Richard Henderson
2020-04-12 21:11 ` [PULL for-5.0 1/1] tcg/mips: mips sync* encode error Richard Henderson
@ 2020-04-13 12:11 ` Peter Maydell
1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2020-04-13 12:11 UTC (permalink / raw)
To: Richard Henderson; +Cc: QEMU Developers
On Sun, 12 Apr 2020 at 22:11, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> 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(-)
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-13 12:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-12 21:11 [PULL for-5.0 0/1] tcg patch queue Richard Henderson
2020-04-12 21:11 ` [PULL for-5.0 1/1] tcg/mips: mips sync* encode error Richard Henderson
2020-04-13 12:11 ` [PULL for-5.0 0/1] tcg patch queue Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).