File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,17 @@ static void tcg_accel_ops_init(AccelOpsClass *ops)
97
97
ops -> create_vcpu_thread = mttcg_start_vcpu_thread ;
98
98
ops -> kick_vcpu_thread = mttcg_kick_vcpu_thread ;
99
99
ops -> handle_interrupt = tcg_handle_interrupt ;
100
- } else if (icount_enabled ()) {
101
- ops -> create_vcpu_thread = rr_start_vcpu_thread ;
102
- ops -> kick_vcpu_thread = rr_kick_vcpu_thread ;
103
- ops -> handle_interrupt = icount_handle_interrupt ;
104
- ops -> get_virtual_clock = icount_get ;
105
- ops -> get_elapsed_ticks = icount_get ;
106
100
} else {
107
101
ops -> create_vcpu_thread = rr_start_vcpu_thread ;
108
102
ops -> kick_vcpu_thread = rr_kick_vcpu_thread ;
109
- ops -> handle_interrupt = tcg_handle_interrupt ;
103
+
104
+ if (icount_enabled ()) {
105
+ ops -> handle_interrupt = icount_handle_interrupt ;
106
+ ops -> get_virtual_clock = icount_get ;
107
+ ops -> get_elapsed_ticks = icount_get ;
108
+ } else {
109
+ ops -> handle_interrupt = tcg_handle_interrupt ;
110
+ }
110
111
}
111
112
}
112
113
You can’t perform that action at this time.
0 commit comments