[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] Simple test case hits assert on ppc64 TCG mode
From: |
Anton Blanchard |
Subject: |
[Qemu-ppc] Simple test case hits assert on ppc64 TCG mode |
Date: |
Tue, 7 May 2019 10:21:04 +1000 |
Hi,
The test case below hits an assert:
qemu-system-ppc64: qemu/tcg/ppc/tcg-target.inc.c:2040: tcg_out_op: Assertion `c
== (int16_t)c' failed. Aborted (core dumped)
Which is:
if (USE_REG_TB) {
/* For the unlinked case, need to reset TCG_REG_TB. */
c = -tcg_current_code_size(s);
assert(c == (int16_t)c);
tcg_out32(s, ADDI | TAI(TCG_REG_TB, TCG_REG_TB, c));
}
I presume it's something to do with translation, since it doesn't
hit in user mode. I ran my tests on an Ubuntu 18.04 image (not that it
should make a difference).
Thanks,
Anton
--
#include <ppc-asm.h>
#define r2 2
FUNC_START(main)
addis r3,r2,address@hidden@ha
addi r3,r3,address@hidden@l
.rept 500
lxvd2x vs0,0,r3
.endr
blr
FUNC_END(main)
.section .data
.balign 32
scratch1:
.space 16
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-ppc] Simple test case hits assert on ppc64 TCG mode,
Anton Blanchard <=