* [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation
@ 2012-02-17 17:03 Meador Inge
2012-02-17 17:06 ` Andreas Färber
0 siblings, 1 reply; 4+ messages in thread
From: Meador Inge @ 2012-02-17 17:03 UTC (permalink / raw)
To: qemu-devel
Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f
where 'watch_mem_write' was modified to fall-through to 'abort' on
every input.
Signed-off-by: Meador Inge <meadori@codesourcery.com>
---
* Changes since v1:
- 'break' out of switch statement instead of 'return'.
exec.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/exec.c b/exec.c
index b81677a..f105b43 100644
--- a/exec.c
+++ b/exec.c
@@ -3289,9 +3289,15 @@ static void watch_mem_write(void *opaque, target_phys_addr_t addr,
{
check_watchpoint(addr & ~TARGET_PAGE_MASK, ~(size - 1), BP_MEM_WRITE);
switch (size) {
- case 1: stb_phys(addr, val);
- case 2: stw_phys(addr, val);
- case 4: stl_phys(addr, val);
+ case 1:
+ stb_phys(addr, val);
+ break;
+ case 2:
+ stw_phys(addr, val);
+ break;
+ case 4:
+ stl_phys(addr, val);
+ break;
default: abort();
}
}
--
1.7.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation
2012-02-17 17:03 [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation Meador Inge
@ 2012-02-17 17:06 ` Andreas Färber
2012-02-18 16:33 ` Andreas Färber
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Färber @ 2012-02-17 17:06 UTC (permalink / raw)
To: Meador Inge; +Cc: Jan Kiszka, qemu-devel
Am 17.02.2012 18:03, schrieb Meador Inge:
> Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f
> where 'watch_mem_write' was modified to fall-through to 'abort' on
> every input.
>
> Signed-off-by: Meador Inge <meadori@codesourcery.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Andreas
> ---
> * Changes since v1:
> - 'break' out of switch statement instead of 'return'.
> exec.c | 12 +++++++++---
> 1 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/exec.c b/exec.c
> index b81677a..f105b43 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -3289,9 +3289,15 @@ static void watch_mem_write(void *opaque, target_phys_addr_t addr,
> {
> check_watchpoint(addr & ~TARGET_PAGE_MASK, ~(size - 1), BP_MEM_WRITE);
> switch (size) {
> - case 1: stb_phys(addr, val);
> - case 2: stw_phys(addr, val);
> - case 4: stl_phys(addr, val);
> + case 1:
> + stb_phys(addr, val);
> + break;
> + case 2:
> + stw_phys(addr, val);
> + break;
> + case 4:
> + stl_phys(addr, val);
> + break;
> default: abort();
> }
> }
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation
2012-02-17 17:06 ` Andreas Färber
@ 2012-02-18 16:33 ` Andreas Färber
2012-02-20 14:11 ` Meador Inge
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Färber @ 2012-02-18 16:33 UTC (permalink / raw)
To: Meador Inge; +Cc: Jan Kiszka, qemu-devel, Max Filippov
Am 17.02.2012 18:06, schrieb Andreas Färber:
> Am 17.02.2012 18:03, schrieb Meador Inge:
>> Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f
>> where 'watch_mem_write' was modified to fall-through to 'abort' on
>> every input.
>>
>> Signed-off-by: Meador Inge <meadori@codesourcery.com>
>
> Reviewed-by: Andreas Färber <afaerber@suse.de>
Actually I already reviewed such a fix by Max on Jan 29 (with breaks
from the start), and it's in his PULL request now. So this is again a
duplicate and shouldn't be applied.
If you want to remind maintainers of a patch that's been on the list but
has not yet been applied, the correct procedure is to add a Reviewed-by
or Acked-by tag if you haven't already, or to reply with a "Ping?"
otherwise.
Andreas
>> ---
>> * Changes since v1:
>> - 'break' out of switch statement instead of 'return'.
>> exec.c | 12 +++++++++---
>> 1 files changed, 9 insertions(+), 3 deletions(-)
>>
>> diff --git a/exec.c b/exec.c
>> index b81677a..f105b43 100644
>> --- a/exec.c
>> +++ b/exec.c
>> @@ -3289,9 +3289,15 @@ static void watch_mem_write(void *opaque, target_phys_addr_t addr,
>> {
>> check_watchpoint(addr & ~TARGET_PAGE_MASK, ~(size - 1), BP_MEM_WRITE);
>> switch (size) {
>> - case 1: stb_phys(addr, val);
>> - case 2: stw_phys(addr, val);
>> - case 4: stl_phys(addr, val);
>> + case 1:
>> + stb_phys(addr, val);
>> + break;
>> + case 2:
>> + stw_phys(addr, val);
>> + break;
>> + case 4:
>> + stl_phys(addr, val);
>> + break;
>> default: abort();
>> }
>> }
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation
2012-02-18 16:33 ` Andreas Färber
@ 2012-02-20 14:11 ` Meador Inge
0 siblings, 0 replies; 4+ messages in thread
From: Meador Inge @ 2012-02-20 14:11 UTC (permalink / raw)
To: Andreas Färber; +Cc: Jan Kiszka, qemu-devel, Max Filippov
On 02/18/2012 10:33 AM, Andreas Färber wrote:
> Am 17.02.2012 18:06, schrieb Andreas Färber:
>> Am 17.02.2012 18:03, schrieb Meador Inge:
>>> Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f
>>> where 'watch_mem_write' was modified to fall-through to 'abort' on
>>> every input.
>>>
>>> Signed-off-by: Meador Inge <meadori@codesourcery.com>
>>
>> Reviewed-by: Andreas Färber <afaerber@suse.de>
>
> Actually I already reviewed such a fix by Max on Jan 29 (with breaks
> from the start), and it's in his PULL request now. So this is again a
> duplicate and shouldn't be applied.
>
> If you want to remind maintainers of a patch that's been on the list but
> has not yet been applied, the correct procedure is to add a Reviewed-by
> or Acked-by tag if you haven't already, or to reply with a "Ping?"
> otherwise.
Ah, I missed that. I will add a review tag to the other. Thanks for the heads
up.
--
Meador Inge
CodeSourcery / Mentor Embedded
http://www.mentor.com/embedded-software
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-20 14:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17 17:03 [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation Meador Inge
2012-02-17 17:06 ` Andreas Färber
2012-02-18 16:33 ` Andreas Färber
2012-02-20 14:11 ` Meador Inge
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).