diff options
author | Edgar E. Iglesias <edgar.iglesias@petalogix.com> | 2010-09-09 10:20:17 +0200 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2010-09-09 10:20:17 +0200 |
commit | 97694c57d73b150296c5f5333960eb4d56225cd7 (patch) | |
tree | b778a82fb00be1572d202b92ecd6c0a290de127f /target-microblaze/helper.h | |
parent | bdc0bf29c65dbd4f7d5119435e0d05da5de2b5c4 (diff) |
microblaze: Add basic FPU emulation
Missing:
* fcmp.un insn
* Denormalized exceptions
* Exception model is not accurate
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
Diffstat (limited to 'target-microblaze/helper.h')
-rw-r--r-- | target-microblaze/helper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target-microblaze/helper.h b/target-microblaze/helper.h index 28f251cc64..11ad1b6dcb 100644 --- a/target-microblaze/helper.h +++ b/target-microblaze/helper.h @@ -10,6 +10,22 @@ DEF_HELPER_2(cmpu, i32, i32, i32) DEF_HELPER_2(divs, i32, i32, i32) DEF_HELPER_2(divu, i32, i32, i32) +DEF_HELPER_2(fadd, i32, i32, i32) +DEF_HELPER_2(frsub, i32, i32, i32) +DEF_HELPER_2(fmul, i32, i32, i32) +DEF_HELPER_2(fdiv, i32, i32, i32) +DEF_HELPER_1(flt, i32, i32) +DEF_HELPER_1(fint, i32, i32) +DEF_HELPER_1(fsqrt, i32, i32) + +DEF_HELPER_2(fcmp_un, i32, i32, i32) +DEF_HELPER_2(fcmp_lt, i32, i32, i32) +DEF_HELPER_2(fcmp_eq, i32, i32, i32) +DEF_HELPER_2(fcmp_le, i32, i32, i32) +DEF_HELPER_2(fcmp_gt, i32, i32, i32) +DEF_HELPER_2(fcmp_ne, i32, i32, i32) +DEF_HELPER_2(fcmp_ge, i32, i32, i32) + DEF_HELPER_FLAGS_2(pcmpbf, TCG_CALL_PURE | TCG_CALL_CONST, i32, i32, i32) #if !defined(CONFIG_USER_ONLY) DEF_HELPER_1(mmu_read, i32, i32) |