| 153 | } |
| 154 | |
| 155 | const struct msrdef *findmsrdef(const uint32_t addr) { |
| 156 | uint8_t t; |
| 157 | const struct msrdef *m; |
| 158 | if (!targets) |
| 159 | return NULL; |
| 160 | for (t = 0; t < targets_found; t++) |
| 161 | for (m = targets[t]->msrs; !MSR_ISEOT(*m); m++) |
| 162 | if (addr == m->addr) |
| 163 | return m; |
| 164 | return NULL; |
| 165 | } |
| 166 | |
| 167 | uint32_t msraddrbyname(const char *name) { |
| 168 | uint8_t t; |