/[qemu]/qemu/target-sparc/op_helper.c
ViewVC logotype

Diff of /qemu/target-sparc/op_helper.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by bellard, Sun Dec 19 23:18:01 2004 UTC revision 1.5 by bellard, Mon Jan 3 23:43:32 2005 UTC
# Line 108  void helper_ld_asi(int asi, int size, in Line 108  void helper_ld_asi(int asi, int size, in
108          if (size == 4)          if (size == 4)
109              bswap32s(&ret);              bswap32s(&ret);
110          else if (size == 2)          else if (size == 2)
111              bswap16s(&ret);              bswap16s((uint16_t *)&ret);
112          break;          break;
113      default:      default:
114          ret = 0;          ret = 0;
# Line 198  void helper_st_asi(int asi, int size, in Line 198  void helper_st_asi(int asi, int size, in
198              if (size == 4)              if (size == 4)
199                  bswap32s(&temp);                  bswap32s(&temp);
200              else if (size == 2)              else if (size == 2)
201                  bswap16s(&temp);                  bswap16s((uint16_t *)&temp);
202    
203              cpu_physical_memory_write(T0, (void *) &temp, size);              cpu_physical_memory_write(T0, (void *) &temp, size);
204          }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26