|
@@ -181,7 +181,6 @@ static const char *log_file;
|
|
static bool list_data_dirs;
|
|
static bool list_data_dirs;
|
|
static const char *qtest_chrdev;
|
|
static const char *qtest_chrdev;
|
|
static const char *qtest_log;
|
|
static const char *qtest_log;
|
|
-static bool opt_one_insn_per_tb;
|
|
|
|
|
|
|
|
static int has_defaults = 1;
|
|
static int has_defaults = 1;
|
|
static int default_audio = 1;
|
|
static int default_audio = 1;
|
|
@@ -2308,19 +2307,7 @@ static int do_configure_accelerator(void *opaque, QemuOpts *opts, Error **errp)
|
|
qemu_opt_foreach(opts, accelerator_set_property,
|
|
qemu_opt_foreach(opts, accelerator_set_property,
|
|
accel,
|
|
accel,
|
|
&error_fatal);
|
|
&error_fatal);
|
|
- /*
|
|
|
|
- * If legacy -singlestep option is set, honour it for TCG and
|
|
|
|
- * silently ignore for any other accelerator (which is how this
|
|
|
|
- * option has always behaved).
|
|
|
|
- */
|
|
|
|
- if (opt_one_insn_per_tb) {
|
|
|
|
- /*
|
|
|
|
- * This will always succeed for TCG, and we want to ignore
|
|
|
|
- * the error from trying to set a nonexistent property
|
|
|
|
- * on any other accelerator.
|
|
|
|
- */
|
|
|
|
- object_property_set_bool(OBJECT(accel), "one-insn-per-tb", true, NULL);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
ret = accel_init_machine(accel, current_machine);
|
|
ret = accel_init_machine(accel, current_machine);
|
|
if (ret < 0) {
|
|
if (ret < 0) {
|
|
if (!qtest_with_kvm || ret != -ENOENT) {
|
|
if (!qtest_with_kvm || ret != -ENOENT) {
|
|
@@ -3057,9 +3044,6 @@ void qemu_init(int argc, char **argv)
|
|
case QEMU_OPTION_bios:
|
|
case QEMU_OPTION_bios:
|
|
qdict_put_str(machine_opts_dict, "firmware", optarg);
|
|
qdict_put_str(machine_opts_dict, "firmware", optarg);
|
|
break;
|
|
break;
|
|
- case QEMU_OPTION_singlestep:
|
|
|
|
- opt_one_insn_per_tb = true;
|
|
|
|
- break;
|
|
|
|
case QEMU_OPTION_S:
|
|
case QEMU_OPTION_S:
|
|
autostart = 0;
|
|
autostart = 0;
|
|
break;
|
|
break;
|