Advertisement
uaa

uARM/replace fprintf to err_str in D$/I$

uaa
May 13th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. diff -uNpr uARM-master.orig/dcache.c uARM-master/dcache.c
  2. --- uARM-master.orig/dcache.c Thu May 2 01:08:13 2013
  3. +++ uARM-master/dcache.c Mon May 13 22:22:10 2013
  4. @@ -132,7 +132,6 @@ Boolean _dcache_fetch_func(dcache* dc, UInt32 va, UInt
  5. return true;
  6. }
  7.  
  8. -#include "stdio.h"
  9. Boolean _dcache_test_func(dcache* dc, UInt32 va, UInt8 sz, Boolean priviledged, UInt8* fsrP, void* buf){
  10.  
  11. UInt8 fsrO = -1, fsrT = -1;
  12. @@ -145,7 +144,7 @@ Boolean _dcache_test_func(dcache* dc, UInt32 va, UInt8
  13.  
  14. if((retT != retO) || (fsrT != fsrO) || (dataT[0] != dataO[0]) || (dataT[1] != dataO[1]) || (dataT[2] != dataO[2]) || (dataT[3] != dataO[3])){
  15.  
  16. - fprintf(stderr, "dcache fail!");
  17. + err_str("dcache fail!");
  18. }
  19.  
  20. for(i = 0; i < sz; i++) ((UInt8*)buf)[i] = dataT[i];
  21. diff -uNpr uARM-master.orig/icache.c uARM-master/icache.c
  22. --- uARM-master.orig/icache.c Thu May 2 01:08:13 2013
  23. +++ uARM-master/icache.c Mon May 13 22:22:04 2013
  24. @@ -137,7 +137,6 @@ Boolean _icache_fetch_func(icache* ic, UInt32 va, UInt
  25. return true;
  26. }
  27.  
  28. -#include "stdio.h"
  29. Boolean _icache_test_func(icache* ic, UInt32 va, UInt8 sz, Boolean priviledged, UInt8* fsrP, void* buf){
  30.  
  31. UInt8 fsrO = -1, fsrT = -1;
  32. @@ -150,7 +149,7 @@ Boolean _icache_test_func(icache* ic, UInt32 va, UInt8
  33.  
  34. if((retT != retO) || (fsrT != fsrO) || (dataT[0] != dataO[0]) || (dataT[1] != dataO[1]) || (dataT[2] != dataO[2]) || (dataT[3] != dataO[3])){
  35.  
  36. - fprintf(stderr, "icache fail!");
  37. + err_str("icache fail!");
  38. }
  39.  
  40. for(i = 0; i < sz; i++) ((UInt8*)buf)[i] = dataT[i];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement