aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tiny_vm
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2024-12-13 00:18:53 +0000
committerjohannst <johannst@users.noreply.github.com>2024-12-13 00:18:53 +0000
commitc94a65c993f5da6a86bd1e6d23e359ba2052f836 (patch)
tree8ca23ecd01fb4cd26c958e310c3f352cc7c73d63 /src/tiny_vm
parent741d915aed07eb4ea265d8e90cf64e8ca6552ddc (diff)
downloadjuicebox-asm-c94a65c993f5da6a86bd1e6d23e359ba2052f836.tar.gz
juicebox-asm-c94a65c993f5da6a86bd1e6d23e359ba2052f836.zip
deploy: 758f014afb8ec5c20ef2fc862fc12e80f65d3d25
Diffstat (limited to 'src/tiny_vm')
-rw-r--r--src/tiny_vm/tiny_vm.rs.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tiny_vm/tiny_vm.rs.html b/src/tiny_vm/tiny_vm.rs.html
index 13c5a44..8062aa5 100644
--- a/src/tiny_vm/tiny_vm.rs.html
+++ b/src/tiny_vm/tiny_vm.rs.html
@@ -743,7 +743,7 @@
</span><span class="kw">use </span>juicebox_asm::insn::<span class="kw-2">*</span>;
<span class="kw">use </span>juicebox_asm::Runtime;
-<span class="kw">use </span>juicebox_asm::{Asm, Imm16, Imm64, MemOp, Reg16, Reg64};
+<span class="kw">use </span>juicebox_asm::{Asm, Imm16, Imm64, Mem16, Reg16, Reg64};
<span class="doccomment">/// A guest physical address.
</span><span class="kw">pub struct </span>PhysAddr(<span class="kw">pub </span>u16);
@@ -990,11 +990,11 @@
// Generate memory operand into regs for guest register.
</span><span class="kw">let </span>reg_op = |r: TinyReg| {
- MemOp::IndirectDisp(Reg64::rdi, (r.idx() * <span class="number">2</span>).try_into().expect(<span class="string">"only 3 regs"</span>))
+ Mem16::indirect_disp(Reg64::rdi, (r.idx() * <span class="number">2</span>).try_into().expect(<span class="string">"only 3 regs"</span>))
};
<span class="comment">// Generate memory operand into dmem for guest phys address.
- </span><span class="kw">let </span>mem_op = |paddr: u16| MemOp::IndirectDisp(Reg64::rsi, paddr.into());
+ </span><span class="kw">let </span>mem_op = |paddr: u16| Mem16::indirect_disp(Reg64::rsi, paddr.into());
<span class="comment">// Compute instructions in translated basic block.
</span><span class="kw">let </span>bb_icnt = || -&gt; u64 { (pc - <span class="self">self</span>.pc).try_into().unwrap() };