From 35e9165962af3a179ba6f6684338acaf32a0159f Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Tue, 2 Jan 2024 21:03:41 +0200 Subject: [PATCH] e2k: do not modify registers for setwd --- target/e2k/helper.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/target/e2k/helper.c b/target/e2k/helper.c index 3d05592355..ed502eaf38 100644 --- a/target/e2k/helper.c +++ b/target/e2k/helper.c @@ -323,24 +323,10 @@ void HELPER(raise_exception)(CPUE2KState *env, int exception_index) void HELPER(setwd)(CPUE2KState *env, int size, int nfx, int dbl) { - int diff; - - diff = size - env->wd.size; - if (size < env->wd.psize) { raise_exception(env, E2K_EXCP_ILLEGAL_OPCODE); } - if (diff > 0) { -// FIXME: zeroing registers is not needed, but useful for debugging -#if 0 - memset(&env->regs[env->wd.size], 0, diff * sizeof(env->regs[0])); -#endif - if (env->enable_tags) { - memset(&env->tags[env->wd.size], E2K_TAG_NON_NUMBER128, diff); - } - } - env->wd.size = size; env->wd.fx = nfx == 0; env->wdbl = dbl;