| 1159 | } |
| 1160 | |
| 1161 | void CPU::verw(U32 selector) { |
| 1162 | this->fillFlags(); |
| 1163 | if (selector == 0) { |
| 1164 | this->removeZF(); |
| 1165 | return; |
| 1166 | } |
| 1167 | U32 index = selector >> 3; |
| 1168 | struct user_desc* ldt = this->thread->getLDT(index); |
| 1169 | |
| 1170 | if (!ldt || ldt->seg_not_present || ldt->read_exec_only) { |
| 1171 | this->removeZF(); |
| 1172 | } else { |
| 1173 | this->addZF(); |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | U32 CPU::getEipAddress() { |
| 1178 | if (this->isBig()) |
no test coverage detected