mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Convert CCR and CWP ops to TCG
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4086 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
@@ -1636,6 +1636,27 @@ target_ulong helper_rdpsr(void)
|
||||
}
|
||||
|
||||
#else
|
||||
target_ulong helper_rdccr(void)
|
||||
{
|
||||
return GET_CCR(env);
|
||||
}
|
||||
|
||||
void helper_wrccr(target_ulong new_ccr)
|
||||
{
|
||||
PUT_CCR(env, new_ccr);
|
||||
}
|
||||
|
||||
// CWP handling is reversed in V9, but we still use the V8 register
|
||||
// order.
|
||||
target_ulong helper_rdcwp(void)
|
||||
{
|
||||
return GET_CWP64(env);
|
||||
}
|
||||
|
||||
void helper_wrcwp(target_ulong new_cwp)
|
||||
{
|
||||
PUT_CWP64(env, new_cwp);
|
||||
}
|
||||
|
||||
// This function uses non-native bit order
|
||||
#define GET_FIELD(X, FROM, TO) \
|
||||
|
||||
Reference in New Issue
Block a user