On 4/15/22 02:40, Xiaojuan Yang wrote:
@@ -45,13 +47,37 @@ target_ulong helper_bitswap(target_ulong v)
void helper_asrtle_d(CPULoongArchState *env, target_ulong rj, target_ulong rk)
{
if (rj > rk) {
- do_raise_exception(env, EXCP_ADE, GETPC());
+ do_raise_exception(env, EXCCODE_ADEM, GETPC());
}
}
void helper_asrtgt_d(CPULoongArchState *env, target_ulong rj, target_ulong rk)
{
if (rj <= rk) {
- do_raise_exception(env, EXCP_ADE, GETPC());
+ do_raise_exception(env, EXCCODE_ADEM, GETPC());
}
}
These two hunks should be pushed back to patch 7, when these functions were
introduced.
r~