-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate fpu functions at startup instead of at every fpu instruction…
… encountered + fixed a bug in FLD (register version)
- Loading branch information
Showing
8 changed files
with
183 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* ergo720 Copyright (c) 2024 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "lib86cpu_priv.h" | ||
|
||
|
||
enum class fpu_instr_t : int { | ||
integer8 = 0, | ||
integer16, | ||
integer32, | ||
integer64, | ||
float_, | ||
bcd, | ||
}; | ||
|
||
void fpu_init(cpu_t *cpu); | ||
void JIT_API fpu_update_tag(cpu_ctx_t *cpu_ctx, uint32_t idx); | ||
template<bool is_push, fpu_instr_t instr_type> | ||
uint32_t JIT_API fpu_stack_check(cpu_ctx_t *cpu_ctx, uint32_t *sw, uint80_t *inv_val); |
Oops, something went wrong.