projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6790af
)
s390: avoid reaching into memory core internals
author
Avi Kivity
<avi@redhat.com>
Wed, 3 Oct 2012 14:14:23 +0000
(16:14 +0200)
committer
Avi Kivity
<avi@redhat.com>
Mon, 22 Oct 2012 12:50:07 +0000
(14:50 +0200)
use cpu_physical_memory_is_io() instead.
Signed-off-by: Avi Kivity <avi@redhat.com>
target-s390x/misc_helper.c
patch
|
blob
|
history
diff --git
a/target-s390x/misc_helper.c
b/target-s390x/misc_helper.c
index e9b3caed49cd02251b33d96eca92e17f7738ff77..fdccd58e3d8bc0ad44d309f3de5cb48b079ef1e2 100644
(file)
--- a/
target-s390x/misc_helper.c
+++ b/
target-s390x/misc_helper.c
@@
-20,7
+20,6
@@
#include "cpu.h"
#include "memory.h"
-#include "cputlb.h"
#include "host-utils.h"
#include "helper.h"
#include <string.h>
@@
-81,7
+80,7
@@
int sclp_service_call(CPUS390XState *env, uint32_t sccb, uint64_t code)
#endif
/* basic checks */
- if (
!memory_region_is_ram(phys_page_find(sccb >> TARGET_PAGE_BITS)->mr
)) {
+ if (
cpu_physical_memory_is_io(sccb
)) {
return -PGM_ADDRESSING;
}
if (sccb & ~0x7ffffff8ul) {