mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/sparc: Implement XMULX
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
680af1b4a5
commit
029b0283df
4 changed files with 19 additions and 0 deletions
|
@ -20,6 +20,7 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "cpu.h"
|
||||
#include "exec/helper-proto.h"
|
||||
#include "crypto/clmul.h"
|
||||
|
||||
target_ulong helper_array8(target_ulong rs1, target_ulong rs2)
|
||||
{
|
||||
|
@ -509,3 +510,13 @@ uint64_t helper_fslas32(uint64_t src1, uint64_t src2)
|
|||
|
||||
return r.ll;
|
||||
}
|
||||
|
||||
uint64_t helper_xmulx(uint64_t src1, uint64_t src2)
|
||||
{
|
||||
return int128_getlo(clmul_64(src1, src2));
|
||||
}
|
||||
|
||||
uint64_t helper_xmulxhi(uint64_t src1, uint64_t src2)
|
||||
{
|
||||
return int128_gethi(clmul_64(src1, src2));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue