Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xing Lin
qemu
Commits
1c213d19
Commit
1c213d19
authored
Sep 03, 2005
by
bellard
Browse files
comments
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@1563
c046a42c-6fe2-441c-8c8c-71466251a162
parent
a7c15abb
Changes
1
Hide whitespace changes
Inline
Side-by-side
exec.c
View file @
1c213d19
...
...
@@ -2193,17 +2193,17 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
if
((
pd
&
~
TARGET_PAGE_MASK
)
!=
IO_MEM_RAM
)
{
io_index
=
(
pd
>>
IO_MEM_SHIFT
)
&
(
IO_MEM_NB_ENTRIES
-
1
);
if
(
l
>=
4
&&
((
addr
&
3
)
==
0
))
{
/* 32 bit
read
access */
/* 32 bit
write
access */
val
=
ldl_p
(
buf
);
io_mem_write
[
io_index
][
2
](
io_mem_opaque
[
io_index
],
addr
,
val
);
l
=
4
;
}
else
if
(
l
>=
2
&&
((
addr
&
1
)
==
0
))
{
/* 16 bit
read
access */
/* 16 bit
write
access */
val
=
lduw_p
(
buf
);
io_mem_write
[
io_index
][
1
](
io_mem_opaque
[
io_index
],
addr
,
val
);
l
=
2
;
}
else
{
/* 8 bit access */
/* 8 bit
write
access */
val
=
ldub_p
(
buf
);
io_mem_write
[
io_index
][
0
](
io_mem_opaque
[
io_index
],
addr
,
val
);
l
=
1
;
...
...
@@ -2237,7 +2237,7 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
stw_p
(
buf
,
val
);
l
=
2
;
}
else
{
/* 8 bit access */
/* 8 bit
read
access */
val
=
io_mem_read
[
io_index
][
0
](
io_mem_opaque
[
io_index
],
addr
);
stb_p
(
buf
,
val
);
l
=
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment