- Timestamp:
- 07/20/2017 11:37:13 PM (7 years ago)
- Branches:
- master
- Children:
- 9674f1a
- Parents:
- ebc8f69
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/fpu.c
rebc8f69 r4c71d39 18 18 #include <all.h> 19 19 20 #define ver(...) { \ 21 if (fpu_verbose) { \ 22 SDL_LogVerbose(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__); \ 23 } \ 24 } 20 #define ver(...) _ver(fpu_verbose, 0, __VA_ARGS__) 21 #define ver2(...) _ver(fpu_verbose, 1, __VA_ARGS__) 22 #define ver3(...) _ver(fpu_verbose, 2, __VA_ARGS__) 25 23 26 bool fpu_verbose = false;24 int32_t fpu_verbose = 0; 27 25 28 26 void fpu_init(void) … … 38 36 void fpu_exec(void) 39 37 { 40 ver ("fpu exec");38 ver3("fpu exec"); 41 39 } 42 40 43 41 uint32_t fpu_read(uint32_t off, int32_t sz) 44 42 { 45 ver ("fpu rd 0x%04x:%d", off, sz * 8);43 ver2("fpu rd 0x%04x:%d", off, sz * 8); 46 44 return 0; 47 45 } … … 49 47 void fpu_write(uint32_t off, int32_t sz, uint32_t val) 50 48 { 51 ver ("fpu wr 0x%04x:%d 0x%0*x", off, sz * 8, sz * 2, val);49 ver2("fpu wr 0x%04x:%d 0x%0*x", off, sz * 8, sz * 2, val); 52 50 }
Note:
See TracChangeset
for help on using the changeset viewer.