This reverts commit 5089493e45.
Rick reported that this patch results in large slowdowns when using
multiple threads. The original patch serialises all stores, resulting in
all vCPUs stopping for every store, which would explain the slowdown.
The results from Rick show
xz compressing 2 MB at -6, without and with the patch:
without patch with patch
xz -T1 5 s 122 s (identical output)
xz -T8 1 s no output after 600 s
That is too large of an overhead, so let's revert this patch until a
better solution is found.
Reported-by: Rick <rick@sloservers.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
Message-ID: <20261001232119.1765494-1-alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
28 lines
566 B
C
28 lines
566 B
C
#ifndef RISCV_TARGET_CPU_H
|
|
#define RISCV_TARGET_CPU_H
|
|
|
|
static inline void cpu_clone_regs_child(CPURISCVState *env, target_ulong newsp,
|
|
unsigned flags)
|
|
{
|
|
if (newsp) {
|
|
env->gpr[xSP] = newsp;
|
|
}
|
|
|
|
env->gpr[xA0] = 0;
|
|
}
|
|
|
|
static inline void cpu_clone_regs_parent(CPURISCVState *env, unsigned flags)
|
|
{
|
|
}
|
|
|
|
static inline void cpu_set_tls(CPURISCVState *env, target_ulong newtls)
|
|
{
|
|
env->gpr[xTP] = newtls;
|
|
}
|
|
|
|
static inline abi_ulong get_sp_from_cpustate(CPURISCVState *state)
|
|
{
|
|
return state->gpr[xSP];
|
|
}
|
|
#endif
|