feat(v4): Phase 7 Task 3b -- compudynamics on the 32 F18 opcodes as on the words, behind OPCODE_PHYSICS (#189)
Captain Bob, 2026-11-14: "we're supposed to be working on f18 opcode as well as our composed f18 dictionary"; ruled every loop on both, "and an easy revert if opcodes are too granular". - The engine: a hook at retire (exec.h on_retire), as Part A's at call; NULL unless set. test_exec.c. - The mesh: 32 opcode records per node, an opcode window, opcode transitions under L4; at every retired instruction decay at the opcodes' own slope, heat, temperature, the window, the transition; in each cycle all 32 cooled, the opcode window's service, inference on its heat. L8 scores from the words and its gates govern both; the tick stays paced by word calls. The window is now one type for words and opcodes. - The revert: OPCODE_PHYSICS (Kconfig.physics, default y; the kernel's flags) -- 0 and the opcodes are counted and charged to the Stadium as in Phase 1. make -C v4 mesh-boot-noop builds and tests it. - Tests first: test_mesh_boot.c 77 checks as built, 86 with pipelining on, 74 with the revert. - Measured on amd64, back to back: 219 s on, 196 s off (+12% under TCG). Both boots' logs labelled. Not pushed (held to the end of Phase 7). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -44,10 +44,16 @@
|
||||
* target (so P is still the return address). NULL: no hook. */
|
||||
typedef void (*v4_call_hook)(void *ctx, v4_node *n, v4_cell target);
|
||||
|
||||
/* Called when an instruction retires, after HEAT-OP counts it, with its opcode (0..31): compudynamics on the
|
||||
* opcodes (#189 Phase 7, ruling 7). NULL: no hook. */
|
||||
typedef void (*v4_retire_hook)(void *ctx, v4_node *n, unsigned op);
|
||||
|
||||
typedef struct {
|
||||
v4_uheat_t anticlock;
|
||||
v4_call_hook on_call; /* reset leaves NULL */
|
||||
void *on_call_ctx;
|
||||
v4_retire_hook on_retire; /* reset leaves NULL */
|
||||
void *on_retire_ctx;
|
||||
|
||||
/* A node blocked at its port in the middle of an instruction word
|
||||
* (node.h) goes on, when it has been served, from the slot after the
|
||||
|
||||
Reference in New Issue
Block a user