Commit 2daf028464375416f1461710c95522890968f4f2

Authored by blueswir1
1 parent 4143f3e0

Fix Sparc32plus & Sparc64 debug output

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4743 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
linux-user/main.c
@@ -779,8 +779,8 @@ static inline void save_window_offset(CPUSPARCState *env, int cwp1) @@ -779,8 +779,8 @@ static inline void save_window_offset(CPUSPARCState *env, int cwp1)
779 779
780 sp_ptr = env->regbase[get_reg_index(env, cwp1, 6)]; 780 sp_ptr = env->regbase[get_reg_index(env, cwp1, 6)];
781 #if defined(DEBUG_WIN) 781 #if defined(DEBUG_WIN)
782 - printf("win_overflow: sp_ptr=0x%x save_cwp=%d\n",  
783 - (int)sp_ptr, cwp1); 782 + printf("win_overflow: sp_ptr=0x" TARGET_ABI_FMT_lx " save_cwp=%d\n",
  783 + sp_ptr, cwp1);
784 #endif 784 #endif
785 for(i = 0; i < 16; i++) { 785 for(i = 0; i < 16; i++) {
786 /* FIXME - what to do if put_user() fails? */ 786 /* FIXME - what to do if put_user() fails? */
@@ -816,8 +816,8 @@ static void restore_window(CPUSPARCState *env) @@ -816,8 +816,8 @@ static void restore_window(CPUSPARCState *env)
816 cwp1 = cpu_cwp_inc(env, env->cwp + 1); 816 cwp1 = cpu_cwp_inc(env, env->cwp + 1);
817 sp_ptr = env->regbase[get_reg_index(env, cwp1, 6)]; 817 sp_ptr = env->regbase[get_reg_index(env, cwp1, 6)];
818 #if defined(DEBUG_WIN) 818 #if defined(DEBUG_WIN)
819 - printf("win_underflow: sp_ptr=0x%x load_cwp=%d\n",  
820 - (int)sp_ptr, cwp1); 819 + printf("win_underflow: sp_ptr=0x" TARGET_ABI_FMT_lx " load_cwp=%d\n",
  820 + sp_ptr, cwp1);
821 #endif 821 #endif
822 for(i = 0; i < 16; i++) { 822 for(i = 0; i < 16; i++) {
823 /* FIXME - what to do if get_user() fails? */ 823 /* FIXME - what to do if get_user() fails? */