mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Sparc64: remove useless variable
Remove a useless variable, spotted by clang analyzer: /src/qemu/target-sparc/op_helper.c:3904:18: warning: unused variable 'tmp' [-Wunused-variable] target_ulong tmp = val; The error message is actually incorrect since the variable is used. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
a6c6f44ae4
commit
de18f87eb1
1 changed files with 2 additions and 4 deletions
|
@ -3901,10 +3901,8 @@ target_ulong cpu_get_ccr(CPUState *env1)
|
||||||
|
|
||||||
static void put_ccr(target_ulong val)
|
static void put_ccr(target_ulong val)
|
||||||
{
|
{
|
||||||
target_ulong tmp = val;
|
env->xcc = (val >> 4) << 20;
|
||||||
|
env->psr = (val & 0xf) << 20;
|
||||||
env->xcc = (tmp >> 4) << 20;
|
|
||||||
env->psr = (tmp & 0xf) << 20;
|
|
||||||
CC_OP = CC_OP_FLAGS;
|
CC_OP = CC_OP_FLAGS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue