Files
unkernel/test
Pooya Parsa 936c28b3bf kwemu: one library with both front ends (arm64 and x86 per task)
The x86 front end no longer replaces A64 at build time: libkwemu exports
the A64 ABI and the x86 one (kw_x64_run, kw_x64_set_isa,
kw_x64_isa_supported, kw_x64_complete_entropy, kw_x64_load_segment) on
the same struct kw_cpu, and include/kw_emu.h (ABI 5) describes both
(struct kw_x64_regs; KW_EV_FPE, KW_EV_GPF and KW_EV_ENTROPY for x86).
kw_cpu_init and kw_host_reset set up both.

x86 blocks have their own sets in the block cache (blockSetFor: the top
set bit flipped), so the blocks of the two ISAs at one pc never share a
set and switching between an arm64 and an x86 task needs no flush. The
compile-time is_x64 switches in src/emu become comptime hooks of the
tier that looks a block up (Blocks.x86): the i386 key strip, the A64
stats hooks, and the shared x86 code-page set, which only x86 decodes
mark (A64 keeps IC IVAU); a write-TLB fill reads it only once some x86
code has been marked.

zig build test runs the A64 tests as before; zig build test-x64 runs the
x86 ones (kwemu-x64-harness*, installed with the x86 guests by
install-x64). The object bundles compiler-rt (the x86 front end's
128-bit and x87 arithmetic).

Co-authored-by: JeremySu0818 <xinghong.su0818@gmail.com>
2026-11-29 23:04:44 +00:00
..
vk: fill the gaps games, mpv and Vulkan 1.2 callers hit (#32, #33) and add texel buffers: timeline semaphores are offered (values reached at the submit as fences are, a queue wait for a value nothing has signalled holds that submit and the later ones in the ICD until it is given), with imageless framebuffers, separate depth/stencil layouts, multiDrawIndirect, HOST_CACHED on the host-visible memory type, image_format_list and swapchain_mutable_format, and one more inter-stage location for wgpu-hal; the translator marks storage buffers a module never writes read-only, reflects only the resources an entry point reaches, drops OpLine, folds OpSpecConstantOp on integers, booleans and composites, lowers isinf/isnan and int[1] sample masks; the host sizes uniform bindings in 16-byte steps, copies block-compressed images in whole blocks and between size-compatible formats, binds placeholders for unwritten textures and samplers, takes storage bindings at unaligned offsets in dispatches through a scratch copy, rewrites indexed triangle fans as lists and no longer truncates sizes of 2 GiB and more; texel buffers (VkBufferView, both descriptor types) run as a storage buffer of words plus a per-view parameter block, decoded by the view's format in WGSL; the base profile exports LIBGL_KOPPER_DISABLE=1 so Mesa's zink stays off kwvk; mpv's gpu-next (yuv420p and rgb24), DDNet with its own SPIR-V and vkd3d's texel-buffer pipelines run; checks in test/vk (vk-timeline, vk-texel, host cases, translator shaders) and a games stage for the test disk
2026-11-28 13:05:33 +00:00
2026-11-22 23:19:14 +00:00
2026-11-19 16:04:15 +00:00
2026-11-15 23:27:04 +00:00
2026-11-15 23:27:04 +00:00