target-arm: Comments added to identify cases in a switch

3 cases in a switch in disas_exc() require reference to the
ARM ARM spec in order to determine what case they're handling.

Backports commit 957956b3013c8122a749dfe61a41aef8b4100e31 from qemu
This commit is contained in:
Thomas Hanson 2018-02-26 08:05:47 -05:00 committed by Lioncash
parent 00d1803436
commit c69ae10ca7
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1706,12 +1706,12 @@ static void disas_exc(DisasContext *s, uint32_t insn)
* instruction works properly.
*/
switch (op2_ll) {
case 1:
case 1: /* SVC */
gen_ss_advance(s);
gen_exception_insn(s, 0, EXCP_SWI, syn_aa64_svc(imm16),
default_exception_el(s));
break;
case 2:
case 2: /* HVC */
if (s->current_el == 0) {
unallocated_encoding(s);
break;
@ -1724,7 +1724,7 @@ static void disas_exc(DisasContext *s, uint32_t insn)
gen_ss_advance(s);
gen_exception_insn(s, 0, EXCP_HVC, syn_aa64_hvc(imm16), 2);
break;
case 3:
case 3: /* SMC */
if (s->current_el == 0) {
unallocated_encoding(s);
break;