document lar/lsl descriptor checking

This commit is contained in:
Dan Luu 2013-03-16 17:22:34 -04:00
parent c1e000252f
commit 3c8cf4e15b

View File

@ -4732,6 +4732,7 @@ CPU_X86.prototype.exec_internal = function(N_cycles, interrupt) {
} }
} else { } else {
descriptor_type = (descriptor_high4bytes >> 8) & 0xf; descriptor_type = (descriptor_high4bytes >> 8) & 0xf;
//Valid descriptors fall through this switch. Invalid descriptors return null
switch (descriptor_type) { switch (descriptor_type) {
case 1: case 1:
case 2: case 2: