vl.c: Remove pxa2xx-specific -portrait and -rotate options
The ``-portrait`` and ``-rotate`` options were documented as only working with the PXA LCD device, and all the machine types using that display device were removed in 9.2. These options were intended to simulate a mobile device being rotated by the user, and had three effects: * the display output was rotated by 90, 180 or 270 degrees (implemented in the PXA display device models) * the mouse/trackpad input was rotated the opposite way (implemented in generic code) * the machine model would signal to the guest about its orientation (implemented by e.g. the spitz machine model) Of these three things, the input-rotation was coded without being restricted to boards which supported the full set of device-rotation handling, so in theory the options were usable on other machine models with odd effects (rotating input but not display output). But this was never intended or documented behaviour, so we can reasonably drop these command line arguments without a formal deprecate-and-drop cycle for them. Remove the options, and their implementation and documentation. Describe the removal in removed-features.rst. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20241003140010.1653808-7-peter.maydell@linaro.org
This commit is contained in:
@@ -40,7 +40,6 @@ int autostart = 1;
|
||||
int vga_interface_type = VGA_NONE;
|
||||
bool vga_interface_created;
|
||||
Chardev *parallel_hds[MAX_PARALLEL_PORTS];
|
||||
int graphic_rotate;
|
||||
QEMUOptionRom option_rom[MAX_OPTION_ROMS];
|
||||
int nb_option_roms;
|
||||
int old_param;
|
||||
|
||||
-11
@@ -2910,17 +2910,6 @@ void qemu_init(int argc, char **argv)
|
||||
nographic = true;
|
||||
dpy.type = DISPLAY_TYPE_NONE;
|
||||
break;
|
||||
case QEMU_OPTION_portrait:
|
||||
graphic_rotate = 90;
|
||||
break;
|
||||
case QEMU_OPTION_rotate:
|
||||
graphic_rotate = strtol(optarg, (char **) &optarg, 10);
|
||||
if (graphic_rotate != 0 && graphic_rotate != 90 &&
|
||||
graphic_rotate != 180 && graphic_rotate != 270) {
|
||||
error_report("only 90, 180, 270 deg rotation is available");
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case QEMU_OPTION_kernel:
|
||||
qdict_put_str(machine_opts_dict, "kernel", optarg);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user