OSDN Git Service

target-ppc: Add is_user_mode Utility Routine
authorTom Musta <tommusta@gmail.com>
Mon, 10 Feb 2014 17:26:57 +0000 (11:26 -0600)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:06:50 +0000 (03:06 +0100)
commit71a8c019c445377f0dd04881cbd7c7dfb6ff3e5c
treed01b7e9a4e489778bc6f45cd28bc727022ced42e
parent38a853375e63ea7315e138d7016ed387d744e43d
target-ppc: Add is_user_mode Utility Routine

This patch adds a boolean function is_user_mode that can be re-used
in translation code that is sensitive to the MSR[PR] (user-mode)
state.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c