e2k: check APB addr alignment only for v4

This commit is contained in:
Denis Drakhnia 2024-01-09 12:59:07 +02:00
parent 0df54fb097
commit c0b7af3c3f

View File

@ -60,7 +60,7 @@ target_ulong HELPER(mova_ptr)(CPUE2KState *env, int chan, int area, int ind,
helper_raise_exception(env, E2K_EXCP_ILLEGAL_OPCODE);
}
if (addr & (size - 1)) {
if ((env->version <= 4 || (env->version == 5 && size == 16)) && addr & (size - 1)) {
return 0;
} else if (page != as->last_page) {
void *ignore;