From fa0950e403bbb98989117f632215ae0e698457d7 Mon Sep 17 00:00:00 2001
From: Chen Gang<address@hidden>
Date: Sun, 4 Oct 2015 17:41:14 +0800
Subject: [PATCH v6] target-tilegx: Support iret instruction and related special
registers
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<address@hidden>
---
target-tilegx/cpu.h | 2 ++
target-tilegx/helper.c | 22 ++++++++++++++++++++++
target-tilegx/helper.h | 1 +
target-tilegx/translate.c | 14 +++++++++++++-
4 files changed, 38 insertions(+), 1 deletion(-)