Commit 1c213d197626942201052f19be2b5f83370a6b36

Authored by bellard
1 parent a7c15abb

comments


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1563 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
... ... @@ -2193,17 +2193,17 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
2193 2193 if ((pd & ~TARGET_PAGE_MASK) != IO_MEM_RAM) {
2194 2194 io_index = (pd >> IO_MEM_SHIFT) & (IO_MEM_NB_ENTRIES - 1);
2195 2195 if (l >= 4 && ((addr & 3) == 0)) {
2196   - /* 32 bit read access */
  2196 + /* 32 bit write access */
2197 2197 val = ldl_p(buf);
2198 2198 io_mem_write[io_index][2](io_mem_opaque[io_index], addr, val);
2199 2199 l = 4;
2200 2200 } else if (l >= 2 && ((addr & 1) == 0)) {
2201   - /* 16 bit read access */
  2201 + /* 16 bit write access */
2202 2202 val = lduw_p(buf);
2203 2203 io_mem_write[io_index][1](io_mem_opaque[io_index], addr, val);
2204 2204 l = 2;
2205 2205 } else {
2206   - /* 8 bit access */
  2206 + /* 8 bit write access */
2207 2207 val = ldub_p(buf);
2208 2208 io_mem_write[io_index][0](io_mem_opaque[io_index], addr, val);
2209 2209 l = 1;
... ... @@ -2237,7 +2237,7 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
2237 2237 stw_p(buf, val);
2238 2238 l = 2;
2239 2239 } else {
2240   - /* 8 bit access */
  2240 + /* 8 bit read access */
2241 2241 val = io_mem_read[io_index][0](io_mem_opaque[io_index], addr);
2242 2242 stb_p(buf, val);
2243 2243 l = 1;
... ...