mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
target/microblaze: Convert dec_sub to decodetree
Use tcg_gen_add2_i32 for computing carry. This removes the last use of helper_carry, so remove that. Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
2080017965
commit
a2b0b90e79
4 changed files with 65 additions and 75 deletions
|
@ -69,17 +69,6 @@ void helper_raise_exception(CPUMBState *env, uint32_t index)
|
|||
cpu_loop_exit(cs);
|
||||
}
|
||||
|
||||
static inline uint32_t compute_carry(uint32_t a, uint32_t b, uint32_t cin)
|
||||
{
|
||||
uint32_t cout = 0;
|
||||
|
||||
if ((b == ~0) && cin)
|
||||
cout = 1;
|
||||
else if ((~0 - a) < (b + cin))
|
||||
cout = 1;
|
||||
return cout;
|
||||
}
|
||||
|
||||
uint32_t helper_cmp(uint32_t a, uint32_t b)
|
||||
{
|
||||
uint32_t t;
|
||||
|
@ -100,11 +89,6 @@ uint32_t helper_cmpu(uint32_t a, uint32_t b)
|
|||
return t;
|
||||
}
|
||||
|
||||
uint32_t helper_carry(uint32_t a, uint32_t b, uint32_t cf)
|
||||
{
|
||||
return compute_carry(a, b, cf);
|
||||
}
|
||||
|
||||
static inline int div_prepare(CPUMBState *env, uint32_t a, uint32_t b)
|
||||
{
|
||||
MicroBlazeCPU *cpu = env_archcpu(env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue