Home
last modified time | relevance | path

Searched refs:cs_raw (Results 1 – 8 of 8) sorted by relevance

/dports/emulators/bochs/bochs-2.7/cpu/
H A Dctrl_xfer_pro.cc35 BX_ERROR(("check_cs(0x%04x): not a valid code segment !", cs_raw)); in check_cs()
36 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in check_cs()
43 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in check_cs()
52 cs_raw, descriptor->dpl, check_cpl)); in check_cs()
53 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in check_cs()
59 cs_raw, check_rpl, check_cpl)); in check_cs()
60 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in check_cs()
67 cs_raw, descriptor->dpl, check_cpl)); in check_cs()
68 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in check_cs()
74 BX_ERROR(("check_cs(0x%04x): code segment not present !", cs_raw)); in check_cs()
[all …]
H A Djmp_far.cc30 BX_CPU_C::jump_protected(bxInstruction_c *i, Bit16u cs_raw, bx_address disp) in jump_protected() argument
37 if ((cs_raw & 0xfffc) == 0) { in jump_protected()
42 parse_selector(cs_raw, &selector); in jump_protected()
52 check_cs(&descriptor, cs_raw, BX_SELECTOR_RPL(cs_raw), CPL); in jump_protected()
63 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in jump_protected()
69 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in jump_protected()
76 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in jump_protected()
81 exception(BX_NP_EXCEPTION, cs_raw & 0xfffc); in jump_protected()
100 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in jump_protected()
106 exception(BX_NP_EXCEPTION, cs_raw & 0xfffc); in jump_protected()
[all …]
H A Dctrl_xfer32.cc61 call_protected(i, cs_raw, disp32); in call_far32()
73 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in call_far32()
92 jump_protected(i, cs_raw, disp32); in jmp_far32()
101 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in jmp_far32()
223 Bit16u cs_raw = i->Iw2(); in CALL32_Ap() local
226 call_far32(i, cs_raw, disp32); in CALL32_Ap()
268 call_far32(i, cs_raw, op1_32); in CALL32_Ep()
495 Bit16u cs_raw; in JMP_Ap() local
503 cs_raw = i->Iw2(); in JMP_Ap()
505 jmp_far32(i, cs_raw, disp32); in JMP_Ap()
[all …]
H A Dctrl_xfer16.cc59 call_protected(i, cs_raw, disp16); in call_far16()
71 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in call_far16()
90 jump_protected(i, cs_raw, disp16); in jmp_far16()
99 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in jmp_far16()
168 Bit16u cs_raw = pop_16(); in RETfar16_Iw() local
176 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in RETfar16_Iw()
224 Bit16u cs_raw = i->Iw2(); in CALL16_Ap() local
226 call_far16(i, cs_raw, disp16); in CALL16_Ap()
268 call_far16(i, cs_raw, op1_16); in CALL16_Ep()
511 jmp_far16(i, cs_raw, op1_16); in JMP16_Ep()
[all …]
H A Dcall_far.cc37 if ((cs_raw & 0xfffc) == 0) { in call_protected()
42 parse_selector(cs_raw, &cs_selector); in call_protected()
51 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
56 check_cs(&cs_descriptor, cs_raw, BX_SELECTOR_RPL(cs_raw), CPL); in call_protected()
158 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
164 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
172 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
177 exception(BX_NP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
195 exception(BX_GP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
201 exception(BX_NP_EXCEPTION, cs_raw & 0xfffc); in call_protected()
[all …]
H A Dvm8086.cc140 Bit16u ip, cs_raw, flags16; in iret16_stack_return_from_v86() local
143 cs_raw = pop_16(); in iret16_stack_return_from_v86()
156 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in iret16_stack_return_from_v86()
170 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], cs_raw); in iret16_stack_return_from_v86()
183 Bit32u eip, cs_raw, flags32; in iret32_stack_return_from_v86() local
194 cs_raw = pop_32(); in iret32_stack_return_from_v86()
197 load_seg_reg(&BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS], (Bit16u) cs_raw); in iret32_stack_return_from_v86()
H A Dctrl_xfer64.cc185 Bit16u cs_raw = read_linear_word(i->seg(), get_laddr64(i->seg(), (eaddr+8) & i->asize_mask())); in CALL64_Ep() local
191 call_protected(i, cs_raw, op1_64); in CALL64_Ep()
439 Bit16u cs_raw = read_linear_word(i->seg(), get_laddr64(i->seg(), (eaddr+8) & i->asize_mask())); in JMP64_Ep() local
443 jump_protected(i, cs_raw, op1_64); in JMP64_Ep()
H A Dcpu.h4646 BX_SMF void jmp_far16(bxInstruction_c *i, Bit16u cs_raw, Bit16u disp16);
4647 BX_SMF void jmp_far32(bxInstruction_c *i, Bit16u cs_raw, Bit32u disp32);
4648 BX_SMF void call_far16(bxInstruction_c *i, Bit16u cs_raw, Bit16u disp16);
4649 BX_SMF void call_far32(bxInstruction_c *i, Bit16u cs_raw, Bit32u disp32);
4697 …BX_SMF void check_cs(bx_descriptor_t *descriptor, Bit16u cs_raw, Bit8u check_rpl, Bit8u check_c…