All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: blauwirbel@gmail.com, Peter Maydell <peter.maydell@linaro.org>,
	mst@redhat.com, qemu-devel@nongnu.org, edgar.iglesias@gmail.com
Subject: Re: [Qemu-devel] [PATCH v2 2/5] register: Add Register API
Date: Mon, 15 Apr 2013 09:11:54 +0200	[thread overview]
Message-ID: <516BA83A.6070700@redhat.com> (raw)
In-Reply-To: <CAEgOgz5y+pXoT0BgaiNU-7JyY5P8AKHCnnqwC5QhH_FMC2u17g@mail.gmail.com>

  Hi,

> - Add a "lite" flag that is (automatically) computed once that takes a
> fast path through the read/write handlers. A reg is lite if it
> requires no read-modify-write (no ro, nw, ge, ui, wtc). Only the
> actual write and post_write handlers are executed.

Sounds good to me.

> - Remove the byte loops. Just switch on register size and cast to
> uint_XXt. Remove support for non power-of-two size registers and
> non-host endianess (needed for potential PCI conversion) but should
> make the code faster.

This too.

Also: you might want to pass both old and new value to the post-write
hook so the handler can easily figure what has actually changed.

cheers,
  Gerd

  reply	other threads:[~2013-04-15  7:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05  8:43 [Qemu-devel] [PATCH v2 0/5] Data Driven device registers & Zynq DEVCFG Peter Crosthwaite
2013-04-05  8:43 ` [Qemu-devel] [PATCH v2 1/5] bitops: Add ONES macro Peter Crosthwaite
2013-04-05  8:53   ` Peter Maydell
2013-04-05  9:11     ` Peter Crosthwaite
2013-04-05  9:24       ` Peter Maydell
2013-04-05  8:43 ` [Qemu-devel] [PATCH v2 2/5] register: Add Register API Peter Crosthwaite
2013-04-05  9:26   ` Peter Maydell
2013-04-05  9:49     ` Peter Crosthwaite
2013-04-07 22:40       ` Peter Crosthwaite
2013-04-15  7:11         ` Gerd Hoffmann [this message]
2013-04-05  8:43 ` [Qemu-devel] [PATCH v2 3/5] register: Add Memory API glue Peter Crosthwaite
2013-04-05 10:07   ` Paolo Bonzini
2013-04-05  8:43 ` [Qemu-devel] [PATCH v2 4/5] xilinx_devcfg: Zynq devcfg device model Peter Crosthwaite
2013-04-05  8:43 ` [Qemu-devel] [PATCH v2 5/5] xilinx_zynq: added devcfg to machine model Peter Crosthwaite

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=516BA83A.6070700@redhat.com \
    --to=kraxel@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=mst@redhat.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=peter.maydell@linaro.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.