summaryrefslogtreecommitdiffstats
path: root/target-tilegx/helper.c
Commit message (Collapse)AuthorAgeFilesLines
* target-tilegx: Support iret instruction and related special registersChen Gang2015-10-071-0/+22
| | | | | | | | | EX_CONTEXT_0_0 is used for jumping address, and EX_CONTEXT_0_1 is for INTERRUPT_CRITICAL_SECTION, which should only be 0 or 1 in user mode, or it will cause target SIGILL (and the patch doesn't support system mode). Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-tilegx: Implement complex multiply instructionsRichard Henderson2015-10-071-0/+40
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-tilegx: Implement crc instructionsRichard Henderson2015-10-071-0/+19
| | | | Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-tilegx: Handle most bit manipulation instructionsRichard Henderson2015-09-151-0/+10
| | | | | | | The crc instructions are omitted from this set. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
* target-tilegx: Add several helpers for instructions translationChen Gang2015-09-151-0/+70
The related instructions are exception, cntlz, cnttz, shufflebytes. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Message-Id: <BLU436-SMTP83F96FD8422BE49AFDC9DFB9660@phx.gbl> [rth: Remove incorrect implementation of add_saturate.] Signed-off-by: Richard Henderson <rth@twiddle.net>