mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Hexagon (target/hexagon) CABAC decode bin
The following instruction is added S2_cabacdecbin Rdd32=decbin(Rss32,Rtt32) Test cases added to tests/tcg/hexagon/misc.c Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <1617930474-31979-27-git-send-email-tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
7aa9ffab79
commit
e628c0156b
7 changed files with 193 additions and 0 deletions
|
@ -222,6 +222,13 @@ static inline void gen_pred_cancel(TCGv pred, int slot_num)
|
|||
(((HIBIT) - (LOWBIT) + 1) ? \
|
||||
extract64((INREG), (LOWBIT), ((HIBIT) - (LOWBIT) + 1)) : \
|
||||
0LL)
|
||||
#define fINSERT_RANGE(INREG, HIBIT, LOWBIT, INVAL) \
|
||||
do { \
|
||||
int width = ((HIBIT) - (LOWBIT) + 1); \
|
||||
INREG = (width >= 0 ? \
|
||||
deposit64((INREG), (LOWBIT), width, (INVAL)) : \
|
||||
INREG); \
|
||||
} while (0)
|
||||
|
||||
#define f8BITSOF(VAL) ((VAL) ? 0xff : 0x00)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue