summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-13 15:33:13 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-13 15:33:13 -0800
commit675736f3cad40e5d1a69d0e14d56542785fe5e8a (patch)
treeefb833f591d7f241ac4f0563332335cc80d920a5 /6/isel.c
parent56d1f1bccd4f943b43e5b8043dd63a17ceb2b2b1 (diff)
downloadmc-675736f3cad40e5d1a69d0e14d56542785fe5e8a.tar.gz
And correctly null terminate arg lists.
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/6/isel.c b/6/isel.c
index c674758..b0bbb48 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -434,9 +434,9 @@ static void blit(Isel *s, Loc *to, Loc *from, size_t dstoff, size_t srcoff, size
savdi = locreg(ModeQ);
savcx = locreg(ModeQ);
len = loclit(sz, ModeQ);
- g(s, Imov, locphysreg(Rrsi), savsi);
- g(s, Imov, locphysreg(Rrdi), savdi);
- g(s, Imov, locphysreg(Rrcx), savcx);
+ g(s, Imov, locphysreg(Rrsi), savsi, NULL);
+ g(s, Imov, locphysreg(Rrdi), savdi, NULL);
+ g(s, Imov, locphysreg(Rrcx), savcx, NULL);
sp = newr(s, from);
dp = newr(s, to);
@@ -453,9 +453,9 @@ static void blit(Isel *s, Loc *to, Loc *from, size_t dstoff, size_t srcoff, size
else
g(s, Imov, dp, locphysreg(Rrdi), NULL);
g(s, Irepmovsb, NULL);
- g(s, Imov, savsi, locphysreg(Rrsi));
- g(s, Imov, savdi, locphysreg(Rrdi));
- g(s, Imov, savcx, locphysreg(Rrcx));
+ g(s, Imov, savsi, locphysreg(Rrsi), NULL);
+ g(s, Imov, savdi, locphysreg(Rrdi), NULL);
+ g(s, Imov, savcx, locphysreg(Rrcx), NULL);
}
}