Mercurial > repos > blastem
comparison gen_x86.c @ 1340:101b5ce682fe
Fix some inconsequential issues in code for executable memory allocation noticed while tracking down a different issue
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 04 May 2017 21:00:25 -0700 |
parents | d5a47597b61f |
children | 5d41d0574863 |
comparison
equal
deleted
inserted
replaced
1339:35e6a93b4586 | 1340:101b5ce682fe |
---|---|
205 } | 205 } |
206 if (next_code != code->last + RESERVE_WORDS) { | 206 if (next_code != code->last + RESERVE_WORDS) { |
207 //new chunk is not contiguous with the current one | 207 //new chunk is not contiguous with the current one |
208 jmp_nocheck(code, next_code); | 208 jmp_nocheck(code, next_code); |
209 code->cur = next_code; | 209 code->cur = next_code; |
210 code->last = next_code + size/sizeof(RESERVE_WORDS); | |
211 } | 210 } |
212 code->last = next_code + size/sizeof(code_word) - RESERVE_WORDS; | 211 code->last = next_code + size/sizeof(code_word) - RESERVE_WORDS; |
213 } | 212 } |
214 } | 213 } |
215 | 214 |