mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-04-30 13:32:36 +00:00
sim: sim_core: correct terminology for the privileged state
This commit is contained in:
@@ -213,7 +213,7 @@ dispatch(Core, Mem, IR, EA) ->
|
||||
-spec page_fault(#core{}, sim_mem:mem(), word(), atom(), term(), fun())
|
||||
-> {#core{}, sim_mem:mem(), ok | {error, {module(), term()}}}.
|
||||
page_fault(Core, Mem, Address, Op, Reason, Cont) ->
|
||||
%% This should trap to supervisor mode, but for now we treat all faults as fatal.
|
||||
%% This should trap to kernel mode, but for now we treat all faults as fatal.
|
||||
PC = (Core#core.pc_section bsl 18) bor Core#core.pc_offset,
|
||||
{Core, Mem, {error, {?MODULE, {page_fault, Address, PC, Op, Reason, Cont}}}}.
|
||||
|
||||
|
||||
@@ -105,8 +105,8 @@
|
||||
, pc_offset :: uint18_t() % PC register, low 18 bits
|
||||
, acs :: tuple() % array of 16 36-bit words
|
||||
, flags :: uint13_t() % status and condition bits
|
||||
%% TODO: add supervisor-mode handling:
|
||||
%% - correctly handle being in supervisor mode
|
||||
%% TODO: add kernel-mode handling:
|
||||
%% - correctly handle being in kernel mode
|
||||
%% - ACBS: array of 8 AC blocks, user ACS is ACBS[CAB]
|
||||
%% - CAB: Current AC Block index, 3 bits
|
||||
%% - PCS: Previous Context Section, 12 bits
|
||||
|
||||
Reference in New Issue
Block a user