History

Update registers struct to include next_pc member. This allows the pc member to always point at the current PC instead of having been incremented to the 'next' PC.

arr committed 9 years ago

Commit a46f30c1 parent 87f2d5b6 files · +67 −68Browse files

Showing the changes to src/include/runtime.h (1 of 6 files). Show all

Unified · Split

src/include/runtime.h+2−1
@@ -745,7 +745,8 @@ namespace disvm · 744 unmodified lines
745 const vm_thread_t &thread;745 const vm_thread_t &thread;
746 std::atomic<vm_tool_dispatch_t *> tool_dispatch;746 std::atomic<vm_tool_dispatch_t *> tool_dispatch;
747 vm_stack_t stack; // Frame pointer access (FP)747 vm_stack_t stack; // Frame pointer access (FP)
748 vm_pc_t pc; // Program counter (Index into module code section)748 vm_pc_t pc; // Current Program counter (Index into module code section)
749 vm_pc_t next_pc; // Next Program counter
749 vm_alloc_t *mp_base; // Module data base pointer (MP)750 vm_alloc_t *mp_base; // Module data base pointer (MP)
750 vm_module_ref_t *module_ref; // Module reference751 vm_module_ref_t *module_ref; // Module reference
751 vm_request_mutex_t request_mutex;752 vm_request_mutex_t request_mutex;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t