| 181 | } |
| 182 | |
| 183 | void dumpmsrdefs(const struct targetdef *t) { |
| 184 | const struct msrdef *m; |
| 185 | const struct msrbits *mb; |
| 186 | if (NULL == t) |
| 187 | return; |
| 188 | printf("# %s MSRs:\n", t->name); |
| 189 | for (m = t->msrs; !MSR_ISEOT(*m); m++) { |
| 190 | if (t->msrs != m) |
| 191 | printf("\n"); |
| 192 | printf("# %s\n", m->symbol); |
| 193 | for (mb = m->bits; mb->size; mb++) |
| 194 | print_bitdef(stdout, mb, "\n"); |
| 195 | printf("0x%08x\n", m->addr); |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | int dumpmsrdefsvals(FILE *f, const struct targetdef *t, const uint8_t cpu) { |
| 200 | struct msr val = MSR1(0); |
no test coverage detected