target/arm: Add missing break statement for Hypervisor Trap Exception

Reported by GCC9 when building with -Wimplicit-fallthrough=2:

target/arm/helper.c: In function ‘arm_cpu_do_interrupt_aarch32_hyp’:
target/arm/helper.c:7958:14: error: this statement may fall through [-Werror=implicit-fallthrough=]
7958 | addr = 0x14;
| ~~~~~^~~~~~
target/arm/helper.c:7959:5: note: here
7959 | default:
| ^~~~~~~
cc1: all warnings being treated as errors

Backports commit 9bbb4ef991fa93323f87769a6e217c2b9273a128 from qemu
This commit is contained in:
Philippe Mathieu-Daudé 2019-08-08 19:42:45 -04:00 committed by Lioncash
parent 556806ad2b
commit 9bd010263a
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -7771,6 +7771,7 @@ static void arm_cpu_do_interrupt_aarch32_hyp(CPUState *cs)
break;
case EXCP_HYP_TRAP:
addr = 0x14;
break;
default:
cpu_abort(cs, "Unhandled exception 0x%x\n", cs->exception_index);
}