From: Stefan Weil <weil@mail.berlios.de>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] Fix bug in omap_sx1.c introduced by r6344
Date: Fri, 06 Feb 2009 22:08:23 +0100 [thread overview]
Message-ID: <498CA6C7.5040004@mail.berlios.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
Hello,
This patch changes the QEMUMachine init function not to take a
DisplayState as an argument because is not needed any more.
r6344 changed the interface but omap_sx1.c still used the old
code. This results in a compiler warning, but I'm also very
sure the old code will no longer work.
Because of the now missing DisplayState *ds, qemu_console_resize
no longer can be called - maybe this is something which remains
to be done.
Regards
Stefan Weil
[-- Attachment #2: omap_sx1.patch --]
[-- Type: text/x-diff, Size: 2030 bytes --]
Fix bug introduced by r6344.
This patch changes the QEMUMachine init function not to take a
DisplayState as an argument because is not needed any more;
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Index: trunk/hw/omap_sx1.c
===================================================================
--- trunk.orig/hw/omap_sx1.c 2009-02-06 22:00:09.000000000 +0100
+++ trunk/hw/omap_sx1.c 2009-02-06 22:00:36.000000000 +0100
@@ -116,7 +116,7 @@
};
static void sx1_init(ram_addr_t ram_size, int vga_ram_size,
- const char *boot_device, DisplayState *ds,
+ const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model,
const int version)
@@ -201,24 +201,25 @@
cpu->env->regs[15] = 0x00000000;
}
- qemu_console_resize(ds, 640, 480);
+ /* TODO: fix next line */
+ //~ qemu_console_resize(ds, 640, 480);
}
static void sx1_init_v1(ram_addr_t ram_size, int vga_ram_size,
- const char *boot_device, DisplayState *ds,
+ const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
- sx1_init(ram_size, vga_ram_size, boot_device, ds, kernel_filename,
+ sx1_init(ram_size, vga_ram_size, boot_device, kernel_filename,
kernel_cmdline, initrd_filename, cpu_model, 1);
}
static void sx1_init_v2(ram_addr_t ram_size, int vga_ram_size,
- const char *boot_device, DisplayState *ds,
+ const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
- sx1_init(ram_size, vga_ram_size, boot_device, ds, kernel_filename,
+ sx1_init(ram_size, vga_ram_size, boot_device, kernel_filename,
kernel_cmdline, initrd_filename, cpu_model, 2);
}
next reply other threads:[~2009-02-06 21:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-06 21:08 Stefan Weil [this message]
2009-02-07 15:18 ` [Qemu-devel] [PATCH] Fix bug in omap_sx1.c introduced by r6344 Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=498CA6C7.5040004@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).