1
Pretty small still, but there are two patches that ought
1
Version 3 fixes a rebase error from v2 affecting ARM BFC insn.
2
to get backported to stable, so no point in delaying.
2
3
3
4
r~
4
r~
5
5
6
The following changes since commit a5ba0a7e4e150d1350a041f0d0ef9ca6c8d7c307:
7
6
8
Merge tag 'pull-aspeed-20241211' of https://github.com/legoater/qemu into staging (2024-12-11 15:16:47 +0000)
7
The following changes since commit 29c8a9e31a982874ce4e2c15f2bf82d5f8dc3517:
8
9
Merge tag 'linux-user-for-8.0-pull-request' of https://gitlab.com/laurent_vivier/qemu into staging (2023-03-12 10:57:00 +0000)
9
10
10
are available in the Git repository at:
11
are available in the Git repository at:
11
12
12
https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20241212
13
https://gitlab.com/rth7680/qemu.git tags/pull-tcg-20230313
13
14
14
for you to fetch changes up to 7ac87b14a92234b6a89b701b4043ad6cf8bdcccf:
15
for you to fetch changes up to 0c8b6b9a6383e2e37ff3d1d12b40c58b7ed36c1c:
15
16
16
target/sparc: Use memcpy() and remove memcpy32() (2024-12-12 14:28:38 -0600)
17
tcg: Drop tcg_const_* (2023-03-13 07:03:39 -0700)
17
18
18
----------------------------------------------------------------
19
----------------------------------------------------------------
19
tcg: Reset free_temps before tcg_optimize
20
accel/tcg: Fix NB_MMU_MODES to 16
20
tcg/riscv: Fix StoreStore barrier generation
21
Balance of the target/ patchset which eliminates tcg_temp_free
21
include/exec: Introduce fpst alias in helper-head.h.inc
22
Balance of the target/ patchset which eliminates tcg_const
22
target/sparc: Use memcpy() and remove memcpy32()
23
23
24
----------------------------------------------------------------
24
----------------------------------------------------------------
25
Philippe Mathieu-Daudé (1):
25
Anton Johansson (23):
26
target/sparc: Use memcpy() and remove memcpy32()
26
include/exec: Set default `NB_MMU_MODES` to 16
27
target/alpha: Remove `NB_MMU_MODES` define
28
target/arm: Remove `NB_MMU_MODES` define
29
target/avr: Remove `NB_MMU_MODES` define
30
target/cris: Remove `NB_MMU_MODES` define
31
target/hexagon: Remove `NB_MMU_MODES` define
32
target/hppa: Remove `NB_MMU_MODES` define
33
target/i386: Remove `NB_MMU_MODES` define
34
target/loongarch: Remove `NB_MMU_MODES` define
35
target/m68k: Remove `NB_MMU_MODES` define
36
target/microblaze: Remove `NB_MMU_MODES` define
37
target/mips: Remove `NB_MMU_MODES` define
38
target/nios2: Remove `NB_MMU_MODES` define
39
target/openrisc: Remove `NB_MMU_MODES` define
40
target/ppc: Remove `NB_MMU_MODES` define
41
target/riscv: Remove `NB_MMU_MODES` define
42
target/rx: Remove `NB_MMU_MODES` define
43
target/s390x: Remove `NB_MMU_MODES` define
44
target/sh4: Remove `NB_MMU_MODES` define
45
target/sparc: Remove `NB_MMU_MODES` define
46
target/tricore: Remove `NB_MMU_MODES` define
47
target/xtensa: Remove `NB_MMU_MODES` define
48
include/exec: Remove guards around `NB_MMU_MODES`
27
49
28
Richard Henderson (2):
50
Richard Henderson (68):
29
tcg: Reset free_temps before tcg_optimize
51
target/mips: Drop tcg_temp_free from micromips_translate.c.inc
30
include/exec: Introduce fpst alias in helper-head.h.inc
52
target/mips: Drop tcg_temp_free from msa_translate.c
53
target/mips: Drop tcg_temp_free from mxu_translate.c
54
target/mips: Drop tcg_temp_free from nanomips_translate.c.inc
55
target/mips: Drop tcg_temp_free from octeon_translate.c
56
target/mips: Drop tcg_temp_free from translate_addr_const.c
57
target/mips: Drop tcg_temp_free from tx79_translate.c
58
target/mips: Drop tcg_temp_free from vr54xx_translate.c
59
target/mips: Drop tcg_temp_free from translate.c
60
target/s390x: Drop free_compare
61
target/s390x: Drop tcg_temp_free from translate_vx.c.inc
62
target/s390x: Drop tcg_temp_free from translate.c
63
target/s390x: Remove assert vs g_in2
64
target/s390x: Remove g_out, g_out2, g_in1, g_in2 from DisasContext
65
tcg: Create tcg/tcg-temp-internal.h
66
target/avr: Avoid use of tcg_const_i32 in SBIC, SBIS
67
target/avr: Avoid use of tcg_const_i32 throughout
68
target/cris: Avoid use of tcg_const_i32 throughout
69
target/hppa: Avoid tcg_const_i64 in trans_fid_f
70
target/hppa: Avoid use of tcg_const_i32 throughout
71
target/i386: Avoid use of tcg_const_* throughout
72
target/m68k: Avoid tcg_const_i32 when modified
73
target/m68k: Avoid tcg_const_i32 in bfop_reg
74
target/m68k: Avoid tcg_const_* throughout
75
target/mips: Split out gen_lxl
76
target/mips: Split out gen_lxr
77
target/mips: Avoid tcg_const_tl in gen_r6_ld
78
target/mips: Avoid tcg_const_* throughout
79
target/ppc: Split out gen_vx_vmul10
80
target/ppc: Avoid tcg_const_i64 in do_vector_shift_quad
81
target/rx: Use tcg_gen_abs_i32
82
target/rx: Use cpu_psw_z as temp in flags computation
83
target/rx: Avoid tcg_const_i32 when new temp needed
84
target/rx: Avoid tcg_const_i32
85
target/s390x: Avoid tcg_const_i64
86
target/sh4: Avoid tcg_const_i32 for TAS.B
87
target/sh4: Avoid tcg_const_i32
88
tcg/sparc: Avoid tcg_const_tl in gen_edge
89
target/tricore: Split t_n as constant from temp as variable
90
target/tricore: Rename t_off10 and use tcg_constant_i32
91
target/tricore: Use setcondi instead of explicit allocation
92
target/tricore: Drop some temp initialization
93
target/tricore: Avoid tcg_const_i32
94
tcg: Replace tcg_const_i64 in tcg-op.c
95
target/arm: Use rmode >= 0 for need_rmode
96
target/arm: Handle FPROUNDING_ODD in arm_rmode_to_sf
97
target/arm: Improve arm_rmode_to_sf
98
target/arm: Consistently use ARMFPRounding during translation
99
target/arm: Create gen_set_rmode, gen_restore_rmode
100
target/arm: Improve trans_BFCI
101
target/arm: Avoid tcg_const_ptr in gen_sve_{ldr,str}
102
target/arm: Avoid tcg_const_* in translate-mve.c
103
target/arm: Avoid tcg_const_ptr in disas_simd_zip_trn
104
target/arm: Avoid tcg_const_ptr in handle_vec_simd_sqshrn
105
target/arm: Avoid tcg_const_ptr in handle_rev
106
target/m68k: Use tcg_constant_i32 in gen_ea_mode
107
target/ppc: Avoid tcg_const_i64 in do_vcntmb
108
target/ppc: Avoid tcg_const_* in vmx-impl.c.inc
109
target/ppc: Avoid tcg_const_* in xxeval
110
target/ppc: Avoid tcg_const_* in vsx-impl.c.inc
111
target/ppc: Avoid tcg_const_* in fp-impl.c.inc
112
target/ppc: Avoid tcg_const_* in power8-pmu-regs.c.inc
113
target/ppc: Rewrite trans_ADDG6S
114
target/ppc: Fix gen_tlbsx_booke206
115
target/ppc: Avoid tcg_const_* in translate.c
116
target/tricore: Use min/max for saturate
117
tcg: Drop tcg_const_*_vec
118
tcg: Drop tcg_const_*
31
119
32
Roman Artemev (1):
120
include/exec/cpu-defs.h | 9 +-
33
tcg/riscv: Fix StoreStore barrier generation
121
include/tcg/tcg-op.h | 4 -
34
122
include/tcg/tcg-temp-internal.h | 83 +++
35
include/tcg/tcg-temp-internal.h | 6 ++++++
123
include/tcg/tcg.h | 64 ---
36
accel/tcg/plugin-gen.c | 2 +-
124
target/alpha/cpu-param.h | 2 -
37
target/sparc/win_helper.c | 26 ++++++++------------------
125
target/arm/cpu-param.h | 2 -
38
tcg/tcg.c | 5 ++++-
126
target/arm/internals.h | 12 +-
39
include/exec/helper-head.h.inc | 3 +++
127
target/arm/tcg/translate.h | 17 +
40
tcg/riscv/tcg-target.c.inc | 2 +-
128
target/avr/cpu-param.h | 1 -
41
6 files changed, 23 insertions(+), 21 deletions(-)
129
target/cris/cpu-param.h | 1 -
42
130
target/hexagon/cpu-param.h | 2 -
131
target/hppa/cpu-param.h | 1 -
132
target/i386/cpu-param.h | 1 -
133
target/loongarch/cpu-param.h | 1 -
134
target/m68k/cpu-param.h | 1 -
135
target/microblaze/cpu-param.h | 1 -
136
target/microblaze/cpu.h | 2 +-
137
target/mips/cpu-param.h | 1 -
138
target/nios2/cpu-param.h | 1 -
139
target/openrisc/cpu-param.h | 1 -
140
target/ppc/cpu-param.h | 1 -
141
target/riscv/cpu-param.h | 1 -
142
target/rx/cpu-param.h | 2 -
143
target/s390x/cpu-param.h | 1 -
144
target/sh4/cpu-param.h | 1 -
145
target/sparc/cpu-param.h | 2 -
146
target/tricore/cpu-param.h | 1 -
147
target/xtensa/cpu-param.h | 1 -
148
accel/tcg/plugin-gen.c | 1 +
149
target/arm/tcg/translate-a64.c | 168 +++---
150
target/arm/tcg/translate-mve.c | 56 +-
151
target/arm/tcg/translate-sve.c | 28 +-
152
target/arm/tcg/translate-vfp.c | 26 +-
153
target/arm/tcg/translate.c | 14 +-
154
target/arm/vfp_helper.c | 35 +-
155
target/avr/translate.c | 48 +-
156
target/cris/translate.c | 46 +-
157
target/hppa/translate.c | 35 +-
158
target/i386/tcg/translate.c | 83 +--
159
target/m68k/translate.c | 231 ++++----
160
target/mips/tcg/msa_translate.c | 9 -
161
target/mips/tcg/mxu_translate.c | 55 +-
162
target/mips/tcg/octeon_translate.c | 23 -
163
target/mips/tcg/translate.c | 819 +++++------------------------
164
target/mips/tcg/translate_addr_const.c | 7 -
165
target/mips/tcg/tx79_translate.c | 45 +-
166
target/mips/tcg/vr54xx_translate.c | 4 -
167
target/ppc/translate.c | 148 +++---
168
target/rx/translate.c | 84 ++-
169
target/s390x/tcg/translate.c | 208 +-------
170
target/sh4/translate.c | 35 +-
171
target/sparc/translate.c | 14 +-
172
target/tricore/translate.c | 476 ++++++++---------
173
tcg/tcg-op-gvec.c | 1 +
174
tcg/tcg-op-vec.c | 35 +-
175
tcg/tcg-op.c | 13 +-
176
tcg/tcg.c | 17 +-
177
target/cris/translate_v10.c.inc | 26 +-
178
target/mips/tcg/micromips_translate.c.inc | 12 +-
179
target/mips/tcg/nanomips_translate.c.inc | 143 +----
180
target/ppc/power8-pmu-regs.c.inc | 4 +-
181
target/ppc/translate/fixedpoint-impl.c.inc | 44 +-
182
target/ppc/translate/fp-impl.c.inc | 26 +-
183
target/ppc/translate/vmx-impl.c.inc | 130 ++---
184
target/ppc/translate/vsx-impl.c.inc | 36 +-
185
target/s390x/tcg/translate_vx.c.inc | 143 -----
186
tcg/i386/tcg-target.c.inc | 9 +-
187
67 files changed, 1166 insertions(+), 2388 deletions(-)
188
create mode 100644 include/tcg/tcg-temp-internal.h
diff view generated by jsdifflib
Deleted patch
1
When allocating new temps during tcg_optmize, do not re-use
2
any EBB temps that were used within the TB. We do not have
3
any idea what span of the TB in which the temp was live.
4
1
5
Introduce tcg_temp_ebb_reset_freed and use before tcg_optimize,
6
as well as replacing the equivalent in plugin_gen_inject and
7
tcg_func_start.
8
9
Cc: qemu-stable@nongnu.org
10
Fixes: fb04ab7ddd8 ("tcg/optimize: Lower TCG_COND_TST{EQ,NE} if unsupported")
11
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2711
12
Reported-by: wannacu <wannacu2049@gmail.com>
13
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
14
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
15
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
16
---
17
include/tcg/tcg-temp-internal.h | 6 ++++++
18
accel/tcg/plugin-gen.c | 2 +-
19
tcg/tcg.c | 5 ++++-
20
3 files changed, 11 insertions(+), 2 deletions(-)
21
22
diff --git a/include/tcg/tcg-temp-internal.h b/include/tcg/tcg-temp-internal.h
23
index XXXXXXX..XXXXXXX 100644
24
--- a/include/tcg/tcg-temp-internal.h
25
+++ b/include/tcg/tcg-temp-internal.h
26
@@ -XXX,XX +XXX,XX @@ TCGv_i64 tcg_temp_ebb_new_i64(void);
27
TCGv_ptr tcg_temp_ebb_new_ptr(void);
28
TCGv_i128 tcg_temp_ebb_new_i128(void);
29
30
+/* Forget all freed EBB temps, so that new allocations produce new temps. */
31
+static inline void tcg_temp_ebb_reset_freed(TCGContext *s)
32
+{
33
+ memset(s->free_temps, 0, sizeof(s->free_temps));
34
+}
35
+
36
#endif /* TCG_TEMP_FREE_H */
37
diff --git a/accel/tcg/plugin-gen.c b/accel/tcg/plugin-gen.c
38
index XXXXXXX..XXXXXXX 100644
39
--- a/accel/tcg/plugin-gen.c
40
+++ b/accel/tcg/plugin-gen.c
41
@@ -XXX,XX +XXX,XX @@ static void plugin_gen_inject(struct qemu_plugin_tb *plugin_tb)
42
* that might be live within the existing opcode stream.
43
* The simplest solution is to release them all and create new.
44
*/
45
- memset(tcg_ctx->free_temps, 0, sizeof(tcg_ctx->free_temps));
46
+ tcg_temp_ebb_reset_freed(tcg_ctx);
47
48
QTAILQ_FOREACH_SAFE(op, &tcg_ctx->ops, link, next) {
49
switch (op->opc) {
50
diff --git a/tcg/tcg.c b/tcg/tcg.c
51
index XXXXXXX..XXXXXXX 100644
52
--- a/tcg/tcg.c
53
+++ b/tcg/tcg.c
54
@@ -XXX,XX +XXX,XX @@ void tcg_func_start(TCGContext *s)
55
s->nb_temps = s->nb_globals;
56
57
/* No temps have been previously allocated for size or locality. */
58
- memset(s->free_temps, 0, sizeof(s->free_temps));
59
+ tcg_temp_ebb_reset_freed(s);
60
61
/* No constant temps have been previously allocated. */
62
for (int i = 0; i < TCG_TYPE_COUNT; ++i) {
63
@@ -XXX,XX +XXX,XX @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb, uint64_t pc_start)
64
}
65
#endif
66
67
+ /* Do not reuse any EBB that may be allocated within the TB. */
68
+ tcg_temp_ebb_reset_freed(s);
69
+
70
tcg_optimize(s);
71
72
reachable_code_pass(s);
73
--
74
2.43.0
75
76
diff view generated by jsdifflib
Deleted patch
1
From: Roman Artemev <roman.artemev@syntacore.com>
2
1
3
On RISC-V to StoreStore barrier corresponds
4
`fence w, w` not `fence r, r`
5
6
Cc: qemu-stable@nongnu.org
7
Fixes: efbea94c76b ("tcg/riscv: Add slowpath load and store instructions")
8
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
9
Signed-off-by: Denis Tomashev <denis.tomashev@syntacore.com>
10
Signed-off-by: Roman Artemev <roman.artemev@syntacore.com>
11
Message-ID: <e2f2131e294a49e79959d4fa9ec02cf4@syntacore.com>
12
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
13
---
14
tcg/riscv/tcg-target.c.inc | 2 +-
15
1 file changed, 1 insertion(+), 1 deletion(-)
16
17
diff --git a/tcg/riscv/tcg-target.c.inc b/tcg/riscv/tcg-target.c.inc
18
index XXXXXXX..XXXXXXX 100644
19
--- a/tcg/riscv/tcg-target.c.inc
20
+++ b/tcg/riscv/tcg-target.c.inc
21
@@ -XXX,XX +XXX,XX @@ static void tcg_out_mb(TCGContext *s, TCGArg a0)
22
insn |= 0x02100000;
23
}
24
if (a0 & TCG_MO_ST_ST) {
25
- insn |= 0x02200000;
26
+ insn |= 0x01100000;
27
}
28
tcg_out32(s, insn);
29
}
30
--
31
2.43.0
diff view generated by jsdifflib
1
This allows targets to declare that the helper requires a
1
Reorg temporary usage so that we can use tcg_constant_i32.
2
float_status pointer and instead of a generic void pointer.
2
tcg_gen_deposit_i32 already has a width == 32 special case,
3
so remove the check here.
3
4
4
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
5
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
5
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
6
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
6
---
7
---
7
include/exec/helper-head.h.inc | 3 +++
8
target/arm/tcg/translate.c | 14 ++++++--------
8
1 file changed, 3 insertions(+)
9
1 file changed, 6 insertions(+), 8 deletions(-)
9
10
10
diff --git a/include/exec/helper-head.h.inc b/include/exec/helper-head.h.inc
11
diff --git a/target/arm/tcg/translate.c b/target/arm/tcg/translate.c
11
index XXXXXXX..XXXXXXX 100644
12
index XXXXXXX..XXXXXXX 100644
12
--- a/include/exec/helper-head.h.inc
13
--- a/target/arm/tcg/translate.c
13
+++ b/include/exec/helper-head.h.inc
14
+++ b/target/arm/tcg/translate.c
14
@@ -XXX,XX +XXX,XX @@
15
@@ -XXX,XX +XXX,XX @@ static bool trans_UBFX(DisasContext *s, arg_UBFX *a)
15
#define dh_alias_ptr ptr
16
16
#define dh_alias_cptr ptr
17
static bool trans_BFCI(DisasContext *s, arg_BFCI *a)
17
#define dh_alias_env ptr
18
{
18
+#define dh_alias_fpst ptr
19
- TCGv_i32 tmp;
19
#define dh_alias_void void
20
int msb = a->msb, lsb = a->lsb;
20
#define dh_alias_noreturn noreturn
21
+ TCGv_i32 t_in, t_rd;
21
#define dh_alias(t) glue(dh_alias_, t)
22
int width;
22
@@ -XXX,XX +XXX,XX @@
23
23
#define dh_ctype_ptr void *
24
if (!ENABLE_ARCH_6T2) {
24
#define dh_ctype_cptr const void *
25
@@ -XXX,XX +XXX,XX @@ static bool trans_BFCI(DisasContext *s, arg_BFCI *a)
25
#define dh_ctype_env CPUArchState *
26
width = msb + 1 - lsb;
26
+#define dh_ctype_fpst float_status *
27
if (a->rn == 15) {
27
#define dh_ctype_void void
28
/* BFC */
28
#define dh_ctype_noreturn G_NORETURN void
29
- tmp = tcg_const_i32(0);
29
#define dh_ctype(t) dh_ctype_##t
30
+ t_in = tcg_constant_i32(0);
30
@@ -XXX,XX +XXX,XX @@
31
} else {
31
#define dh_typecode_f64 dh_typecode_i64
32
/* BFI */
32
#define dh_typecode_cptr dh_typecode_ptr
33
- tmp = load_reg(s, a->rn);
33
#define dh_typecode_env dh_typecode_ptr
34
+ t_in = load_reg(s, a->rn);
34
+#define dh_typecode_fpst dh_typecode_ptr
35
}
35
#define dh_typecode(t) dh_typecode_##t
36
- if (width != 32) {
36
37
- TCGv_i32 tmp2 = load_reg(s, a->rd);
37
#define dh_callflag_i32 0
38
- tcg_gen_deposit_i32(tmp, tmp2, tmp, lsb, width);
39
- }
40
- store_reg(s, a->rd, tmp);
41
+ t_rd = load_reg(s, a->rd);
42
+ tcg_gen_deposit_i32(t_rd, t_rd, t_in, lsb, width);
43
+ store_reg(s, a->rd, t_rd);
44
return true;
45
}
46
38
--
47
--
39
2.43.0
48
2.34.1
40
49
41
50
diff view generated by jsdifflib
Deleted patch
1
From: Philippe Mathieu-Daudé <philmd@linaro.org>
2
1
3
Rather than manually copying each register, use
4
the libc memcpy(), which is well optimized nowadays.
5
6
Suggested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
7
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
8
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
9
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
10
Message-ID: <20241205205418.67613-1-philmd@linaro.org>
11
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
12
---
13
target/sparc/win_helper.c | 26 ++++++++------------------
14
1 file changed, 8 insertions(+), 18 deletions(-)
15
16
diff --git a/target/sparc/win_helper.c b/target/sparc/win_helper.c
17
index XXXXXXX..XXXXXXX 100644
18
--- a/target/sparc/win_helper.c
19
+++ b/target/sparc/win_helper.c
20
@@ -XXX,XX +XXX,XX @@
21
#include "exec/helper-proto.h"
22
#include "trace.h"
23
24
-static inline void memcpy32(target_ulong *dst, const target_ulong *src)
25
-{
26
- dst[0] = src[0];
27
- dst[1] = src[1];
28
- dst[2] = src[2];
29
- dst[3] = src[3];
30
- dst[4] = src[4];
31
- dst[5] = src[5];
32
- dst[6] = src[6];
33
- dst[7] = src[7];
34
-}
35
-
36
void cpu_set_cwp(CPUSPARCState *env, int new_cwp)
37
{
38
/* put the modified wrap registers at their proper location */
39
if (env->cwp == env->nwindows - 1) {
40
- memcpy32(env->regbase, env->regbase + env->nwindows * 16);
41
+ memcpy(env->regbase, env->regbase + env->nwindows * 16,
42
+ sizeof(env->gregs));
43
}
44
env->cwp = new_cwp;
45
46
/* put the wrap registers at their temporary location */
47
if (new_cwp == env->nwindows - 1) {
48
- memcpy32(env->regbase + env->nwindows * 16, env->regbase);
49
+ memcpy(env->regbase + env->nwindows * 16, env->regbase,
50
+ sizeof(env->gregs));
51
}
52
env->regwptr = env->regbase + (new_cwp * 16);
53
}
54
@@ -XXX,XX +XXX,XX @@ void cpu_gl_switch_gregs(CPUSPARCState *env, uint32_t new_gl)
55
dst = get_gl_gregset(env, env->gl);
56
57
if (src != dst) {
58
- memcpy32(dst, env->gregs);
59
- memcpy32(env->gregs, src);
60
+ memcpy(dst, env->gregs, sizeof(env->gregs));
61
+ memcpy(env->gregs, src, sizeof(env->gregs));
62
}
63
}
64
65
@@ -XXX,XX +XXX,XX @@ void cpu_change_pstate(CPUSPARCState *env, uint32_t new_pstate)
66
/* Switch global register bank */
67
src = get_gregset(env, new_pstate_regs);
68
dst = get_gregset(env, pstate_regs);
69
- memcpy32(dst, env->gregs);
70
- memcpy32(env->gregs, src);
71
+ memcpy(dst, env->gregs, sizeof(env->gregs));
72
+ memcpy(env->gregs, src, sizeof(env->gregs));
73
} else {
74
trace_win_helper_no_switch_pstate(new_pstate_regs);
75
}
76
--
77
2.43.0
78
79
diff view generated by jsdifflib