Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Missing x87 FPU registers #1524

Closed
Boyan-MILANOV opened this issue Jan 3, 2022 · 2 comments
Closed

Missing x87 FPU registers #1524

Boyan-MILANOV opened this issue Jan 3, 2022 · 2 comments
Labels

Comments

@Boyan-MILANOV
Copy link

It seems to me that some registers are missing for the x86 architecture. The list and description is taken from section 8.1.8 of the Intel® 64 and IA-32 Architectures Developer's Manual: Vol. 1

  • FIP: The x87 FPU Instruction Pointer Offset (FIP) comprises 64 bits on processors that support IA-32e mode; on
    other processors, it offset comprises 32 bits.
  • FCS: The x87 FPU Instruction Pointer Selector (FCS) comprises 16 bits.
  • FDP: The x87 FPU Data Pointer Offset (FDP) comprises 64 bits on processors that support IA-32e mode; on other
    processors, it offset comprises 32 bits.
  • FDS: The x87 FPU Data Pointer Selector (FDS) comprises 16 bits.
  • FOP: The x87 FPU stores in the 11-bit x87 FPU opcode register (FOP) the opcode of the last x87 non-control instruction
    executed that incurred an unmasked x87 exception

Those registers are for example used by the FXSAVE and FXRSTOR instructions.

@wtdcode
Copy link
Member

wtdcode commented Jan 3, 2022

Hello, thanks for your report.

You are right, I forgot these registers.

@wtdcode wtdcode added the bug label Jan 3, 2022
wtdcode added a commit that referenced this issue Jan 4, 2022
@wtdcode
Copy link
Member

wtdcode commented Jan 4, 2022

Fixed in d854e22

@wtdcode wtdcode closed this as completed Jan 4, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants