OLD | NEW |
| 1 #include "config.h" |
1 #include <signal.h> | 2 #include <signal.h> |
2 | 3 |
3 #include "sim-main.h" | 4 #include "sim-main.h" |
4 #include "sim-options.h" | 5 #include "sim-options.h" |
5 #include "sim-hw.h" | 6 #include "sim-hw.h" |
6 | 7 |
7 #include "sysdep.h" | |
8 #include "bfd.h" | 8 #include "bfd.h" |
9 #include "sim-assert.h" | 9 #include "sim-assert.h" |
10 | 10 |
11 | 11 |
12 #ifdef HAVE_STDLIB_H | 12 #ifdef HAVE_STDLIB_H |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 #endif | 14 #endif |
15 | 15 |
16 #ifdef HAVE_STRING_H | 16 #ifdef HAVE_STRING_H |
17 #include <string.h> | 17 #include <string.h> |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 a[3] = (data >> 24) & 0xff; | 376 a[3] = (data >> 24) & 0xff; |
377 } | 377 } |
378 | 378 |
379 int | 379 int |
380 sim_fetch_register (SIM_DESC sd, | 380 sim_fetch_register (SIM_DESC sd, |
381 int rn, | 381 int rn, |
382 unsigned char *memory, | 382 unsigned char *memory, |
383 int length) | 383 int length) |
384 { | 384 { |
385 put_word (memory, State.regs[rn]); | 385 put_word (memory, State.regs[rn]); |
386 return -1; | 386 return length; |
387 } | 387 } |
388 | 388 |
389 int | 389 int |
390 sim_store_register (SIM_DESC sd, | 390 sim_store_register (SIM_DESC sd, |
391 int rn, | 391 int rn, |
392 unsigned char *memory, | 392 unsigned char *memory, |
393 int length) | 393 int length) |
394 { | 394 { |
395 State.regs[rn] = get_word (memory); | 395 State.regs[rn] = get_word (memory); |
396 return length; | 396 return length; |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 | 1091 |
1092 stat |= sim_fpu_neg (&mm, &m); | 1092 stat |= sim_fpu_neg (&mm, &m); |
1093 stat |= sim_fpu_sub (&r, &mm, &n); | 1093 stat |= sim_fpu_sub (&r, &mm, &n); |
1094 stat |= ROUND (&r); | 1094 stat |= ROUND (&r); |
1095 if (fpu_status_ok (stat)) | 1095 if (fpu_status_ok (stat)) |
1096 VAL2REG (&r, reg_out); | 1096 VAL2REG (&r, reg_out); |
1097 } | 1097 } |
1098 | 1098 |
1099 fpu_check_signal_exception (sd, cpu, cia); | 1099 fpu_check_signal_exception (sd, cpu, cia); |
1100 } | 1100 } |
OLD | NEW |