From: Blue Swirl <blauwirbel@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] apb_pci: minor cleanup
Date: Mon, 22 Feb 2010 23:20:41 +0200 [thread overview]
Message-ID: <f43fc5581002221320w44ed6a60p7ba6603e743f7bf5@mail.gmail.com> (raw)
In-Reply-To: <20100222094019.GA7578@redhat.com>
Thanks, applied.
On 2/22/10, Michael S. Tsirkin <mst@redhat.com> wrote:
> pci_data_write ignores high 8 bit in address,
> so there seems to be no need to set them
> in apb_pci.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>
> Blue Swirl, please consider the following (untested) patch.
> Thanks!
>
> hw/apb_pci.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/hw/apb_pci.c b/hw/apb_pci.c
> index ebfcd41..f14b432 100644
> --- a/hw/apb_pci.c
> +++ b/hw/apb_pci.c
> @@ -187,8 +187,7 @@ static void apb_pci_config_write(APBState *s, target_phys_addr_t addr,
> uint32_t val, int size)
> {
> APB_DPRINTF("%s: addr " TARGET_FMT_lx " val %x\n", __func__, addr, val);
> - pci_data_write(s->host_state.bus, (addr & 0x00ffffff) | (1u << 31), val,
> - size);
> + pci_data_write(s->host_state.bus, addr, val, size);
> }
>
> static uint32_t apb_pci_config_read(APBState *s, target_phys_addr_t addr,
> @@ -196,8 +195,7 @@ static uint32_t apb_pci_config_read(APBState *s, target_phys_addr_t addr,
> {
> uint32_t ret;
>
> - ret = pci_data_read(s->host_state.bus, (addr & 0x00ffffff) | (1u << 31),
> - size);
> + ret = pci_data_read(s->host_state.bus, addr, size);
> APB_DPRINTF("%s: addr " TARGET_FMT_lx " -> %x\n", __func__, addr, ret);
> return ret;
> }
>
> --
> 1.7.0.18.g0d53a5
>
prev parent reply other threads:[~2010-02-22 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 9:40 [Qemu-devel] [PATCH] apb_pci: minor cleanup Michael S. Tsirkin
2010-02-22 21:20 ` Blue Swirl [this message]
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=f43fc5581002221320w44ed6a60p7ba6603e743f7bf5@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=mst@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).