mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
Merge tag 'pull-misc-20251110' of https://gitlab.com/rth7680/qemu into staging
accel/tcg: Trace tb_flush() calls accel/tcg: Trace tb_gen_code() buffer overflow qapi/parser: Mollify mypy tests/functional: Mark another MIPS replay test as flaky target/x86: Correctly handle invalid 0x0f 0xc7 0xxx insns # -----BEGIN PGP SIGNATURE----- # # iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmkRx8EdHHJpY2hhcmQu # aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV9wywf/e1aFOMdj6SFHeum6 # vb7cmWZWDQr5KrV2lnHxkAhoGk4TL6StlWNgSJfUVAzeElbNTqM+W/w0yJrM7W6K # LEsYCVsvA1juIrfD8aPkzO5+hS0bv+nCS74k7OsYlS4u20A7FBRrR98UI4icgYO0 # ND4hEdGMP+1+Rc+U8+qhP4KiXMW2c3MC7SXwsb8fvdBvbe9Oh7ExpeOJao8mlasg # hmu4WrjGQwkxLLLkAK7F55IgJx6x8QIWxtjg+q1AxA7AhgnG/kQ8e4RDF8cZyORF # fsVRgST4o7kCdM9n2eicVLf2P0BLbZgM1bpsoXPadjTUMpioXLujGCIzl5Cnto4k # AjpTJQ== # =Tirj # -----END PGP SIGNATURE----- # gpg: Signature made Mon 10 Nov 2025 12:08:49 PM CET # gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F # gpg: issuer "richard.henderson@linaro.org" # gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>" [ultimate] * tag 'pull-misc-20251110' of https://gitlab.com/rth7680/qemu: target/x86: Correctly handle invalid 0x0f 0xc7 0xxx insns tests/functional: Mark another MIPS replay test as flaky qapi/parser: Mollify mypy accel/tcg: Trace tb_gen_code() buffer overflow accel/tcg: Trace tb_flush() calls Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#else
|
||||
#include "system/runstate.h"
|
||||
#endif
|
||||
|
||||
#include "trace.h"
|
||||
|
||||
/* List iterators for lists of tagged pointers in TranslationBlock. */
|
||||
#define TB_FOR_EACH_TAGGED(head, tb, n, field) \
|
||||
@@ -771,6 +771,7 @@ void tb_flush__exclusive_or_serial(void)
|
||||
{
|
||||
CPUState *cpu;
|
||||
|
||||
trace_tb_flush();
|
||||
assert(tcg_enabled());
|
||||
/* Note that cpu_in_serial_context checks cpu_in_exclusive_context. */
|
||||
assert(!runstate_is_running() ||
|
||||
|
||||
@@ -12,6 +12,7 @@ memory_notdirty_set_dirty(uint64_t vaddr) "0x%" PRIx64
|
||||
|
||||
# translate-all.c
|
||||
translate_block(void *tb, uintptr_t pc, const void *tb_code) "tb:%p, pc:0x%"PRIxPTR", tb_code:%p"
|
||||
tb_gen_code_buffer_overflow(const char *reason) "reason: %s"
|
||||
|
||||
# ldst_atomicity
|
||||
load_atom2_fallback(uint32_t memop, uintptr_t ra) "mop:0x%"PRIx32", ra:0x%"PRIxPTR""
|
||||
@@ -24,3 +25,6 @@ store_atom2_fallback(uint32_t memop, uintptr_t ra) "mop:0x%"PRIx32", ra:0x%"PRIx
|
||||
store_atom4_fallback(uint32_t memop, uintptr_t ra) "mop:0x%"PRIx32", ra:0x%"PRIxPTR""
|
||||
store_atom8_fallback(uint32_t memop, uintptr_t ra) "mop:0x%"PRIx32", ra:0x%"PRIxPTR""
|
||||
store_atom16_fallback(uint32_t memop, uintptr_t ra) "mop:0x%"PRIx32", ra:0x%"PRIxPTR""
|
||||
|
||||
# tb-maint.c
|
||||
tb_flush(void) ""
|
||||
|
||||
@@ -290,6 +290,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, TCGTBCPUState s)
|
||||
if (unlikely(!tb)) {
|
||||
/* flush must be done */
|
||||
if (cpu_in_serial_context(cpu)) {
|
||||
trace_tb_gen_code_buffer_overflow("tcg_tb_alloc");
|
||||
tb_flush__exclusive_or_serial();
|
||||
goto buffer_overflow;
|
||||
}
|
||||
@@ -325,6 +326,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, TCGTBCPUState s)
|
||||
if (unlikely(gen_code_size < 0)) {
|
||||
switch (gen_code_size) {
|
||||
case -1:
|
||||
trace_tb_gen_code_buffer_overflow("setjmp_gen_code");
|
||||
/*
|
||||
* Overflow of code_gen_buffer, or the current slice of it.
|
||||
*
|
||||
@@ -389,6 +391,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, TCGTBCPUState s)
|
||||
|
||||
search_size = encode_search(tb, (void *)gen_code_buf + gen_code_size);
|
||||
if (unlikely(search_size < 0)) {
|
||||
trace_tb_gen_code_buffer_overflow("encode_search");
|
||||
tb_unlock_pages(tb);
|
||||
goto buffer_overflow;
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@ class QAPISchemaParser:
|
||||
self._literal_mode = True
|
||||
self._literal_mode_indent = 0
|
||||
elif self._literal_mode and line:
|
||||
indent = re.match(r'^ *', line).end()
|
||||
indent = must_match(r'\s*', line).end()
|
||||
if self._literal_mode_indent == 0:
|
||||
self._literal_mode_indent = indent
|
||||
elif indent < self._literal_mode_indent:
|
||||
|
||||
@@ -335,6 +335,8 @@ static void decode_group9(DisasContext *s, CPUX86State *env, X86OpEntry *entry,
|
||||
*entry = group9_reg;
|
||||
} else if (op == 1) {
|
||||
*entry = REX_W(s) ? cmpxchg16b : cmpxchg8b;
|
||||
} else {
|
||||
*entry = UNKNOWN_OPCODE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ class Mips64elReplay(ReplayKernelBase):
|
||||
'75ba10cd35fb44e32948eeb26974f061b703c81c4ba2fab1ebcacf1d1bec3b61')
|
||||
|
||||
@skipUntrustedTest()
|
||||
@skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2013")
|
||||
def test_replay_mips64el_malta_5KEc_cpio(self):
|
||||
self.set_machine('malta')
|
||||
self.cpu = '5KEc'
|
||||
|
||||
Reference in New Issue
Block a user