]> Git Repo - qemu.git/commitdiff
target-arm: Comments added to identify cases in a switch
authorThomas Hanson <[email protected]>
Mon, 17 Oct 2016 18:22:18 +0000 (19:22 +0100)
committerPeter Maydell <[email protected]>
Mon, 17 Oct 2016 18:22:18 +0000 (19:22 +0100)
3 cases in a switch in disas_exc() require reference to the
ARM ARM spec in order to determine what case they're handling.

Signed-off-by: Thomas Hanson <[email protected]>
Message-id: 1476301853[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
target-arm/translate-a64.c

index 16716a2c1fff0afcde32e240b2858c558f1de216..96c222722e3d06aff7abf6b97bdca808cfeb1ad8 100644 (file)
@@ -1667,12 +1667,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;
@@ -1685,7 +1685,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;
This page took 0.041172 seconds and 4 git commands to generate.