From: Wang Xin <wangxinxin.wang@huawei.com>
To: kraxel@redhat.com, wangxinxin.wang@huawei.com
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] vga: use vbe_enabled() helper
Date: Wed, 11 May 2016 17:22:26 +0800 [thread overview]
Message-ID: <1462958546-22492-1-git-send-email-wangxinxin.wang@huawei.com> (raw)
Commit bfa0f15 add vbe_enabled() helper, while it forget to replace
the code in vbe_ioport_write_data().
Signed-off-by: Wang Xin <wangxinxin.wang@huawei.com>
---
hw/display/vga.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/display/vga.c b/hw/display/vga.c
index 4a55ec6..455ef51 100644
--- a/hw/display/vga.c
+++ b/hw/display/vga.c
@@ -778,8 +778,7 @@ void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val)
vga_update_memory_access(s);
break;
case VBE_DISPI_INDEX_ENABLE:
- if ((val & VBE_DISPI_ENABLED) &&
- !(s->vbe_regs[VBE_DISPI_INDEX_ENABLE] & VBE_DISPI_ENABLED)) {
+ if ((val & VBE_DISPI_ENABLED) && !vbe_enabled(s)) {
s->vbe_regs[VBE_DISPI_INDEX_VIRT_WIDTH] = 0;
s->vbe_regs[VBE_DISPI_INDEX_X_OFFSET] = 0;
--
2.8.1.windows.1
next reply other threads:[~2016-05-11 9:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-11 9:22 Wang Xin [this message]
2016-05-11 9:59 ` [Qemu-devel] [PATCH] vga: use vbe_enabled() helper Gerd Hoffmann
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=1462958546-22492-1-git-send-email-wangxinxin.wang@huawei.com \
--to=wangxinxin.wang@huawei.com \
--cc=kraxel@redhat.com \
--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).