49 panic(
"getArgument() not implemented\n");
61 double sdouble_val = fp_val;
62 void *sdouble_ptr = &sdouble_val;
63 uint64_t sdp_bits = *(uint64_t *) sdouble_ptr;
69 int32_t sword_val = (int32_t) fp_val;
70 void *sword_ptr = &sword_val;
71 uint64_t sword_bits= *(uint32_t *) sword_ptr;
77 float wfloat_val = fp_val;
78 void *wfloat_ptr = &wfloat_val;
79 uint64_t wfloat_bits = *(uint32_t *) wfloat_ptr;
85 double wdouble_val = fp_val;
86 void *wdouble_ptr = &wdouble_val;
87 uint64_t wdp_bits = *(uint64_t *) wdouble_ptr;
92 panic(
"Invalid Floating Point Conversion Type (%d). See \"types.hh\" for List of Conversions\n",cvt_type);
100 double digit_offset = pow(10.0,digits);
111 int trunc_val = (int)
val;
112 return (
double) trunc_val;
118 int shift = (cc_idx == 0) ? 23 : cc_idx + 24;
119 bool cc_val = (fcsr >>
shift) & 0x00000001;
126 int cc_idx = (cc_num == 0) ? 23 : cc_num + 24;
128 fcsr =
bits(fcsr, 31, cc_idx + 1) << (cc_idx + 1) |
130 bits(fcsr, cc_idx - 1, 0);
140 fcsr_bits = fcsr_bits | (1 << invalid_offset);
144 fcsr_bits = fcsr_bits | (1 << cause_offset);
156 uint32_t val_bits = *(uint32_t *) val_ptr;
157 return (
bits(val_bits, 30, 23) == 0xFF);
162 uint64_t val_bits = *(uint64_t *) val_ptr;
163 return (
bits(val_bits, 62, 52) == 0x7FF);
167 panic(
"Type unsupported. Size mismatch\n");
179 uint32_t val_bits = *(uint32_t *) val_ptr;
180 return (
bits(val_bits, 30, 22) == 0x1FE);
185 uint64_t val_bits = *(uint64_t *) val_ptr;
186 return (
bits(val_bits, 62, 51) == 0xFFE);
190 panic(
"Type unsupported. Size mismatch\n");
201 uint32_t val_bits = *(uint32_t *) val_ptr;
202 return (
bits(val_bits, 30, 22) == 0x1FF);
207 uint64_t val_bits = *(uint64_t *) val_ptr;
208 return (
bits(val_bits, 62, 51) == 0xFFF);
212 panic(
"Type unsupported. Size mismatch\n");
241 panic(
"Copy Misc. Regs Not Implemented Yet\n");