|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH 1/7] Export the unassigned_mem read/write functions. |
Date: | Sun, 24 Jul 2011 09:42:03 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Thunderbird/3.1.11 |
On 07/24/2011 06:28 AM, Anthony Liguori wrote: > On 07/23/2011 02:17 PM, Richard Henderson wrote: >> Signed-off-by: Richard Henderson<address@hidden> > > Why? So that I can write i/o functions like this: switch (addr) { case 0: ... case 64: ... case 128: ... ... default: unassigned_mem_readl(...) } Perhaps Avi's rewrite makes this unnecessary; I browsed through his patch set but didn't immediately see if there's a way for the i/o function to return "failure". What I certainly don't want to do is write this with 100 tiny functions registering 8 bytes each, registered some tiny distance away from each other. r~
[Prev in Thread] | Current Thread | [Next in Thread] |