aarch64: handle semihosting in aarch32 state
[fw/openocd] / src / target / armv8.c
index 95efdc90bbd71e2220c3090feb800175019b1bbd..6bf3b110daac3196e30c180957236d3d4bb5aa8d 100644 (file)
@@ -1098,13 +1098,6 @@ int armv8_handle_cache_info_command(struct command_invocation *cmd,
 
 static int armv8_setup_semihosting(struct target *target, int enable)
 {
-       struct arm *arm = target_to_arm(target);
-
-       if (arm->core_state != ARM_STATE_AARCH64) {
-               LOG_ERROR("semihosting only supported in AArch64 state\n");
-               return ERROR_FAIL;
-       }
-
        return ERROR_OK;
 }