alpha fix (Falk Hueffner)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@560 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2004-01-18 22:06:47 +00:00
parent 44a91cae10
commit 630be16f6c

View File

@ -485,8 +485,11 @@ void gen_code(const char *name, host_ulong offset, host_ulong size,
{ {
uint8_t *p; uint8_t *p;
p = p_end - 4; p = p_end - 4;
#if 0
/* XXX: check why it occurs */
if (p == p_start) if (p == p_start)
error("empty code for %s", name); error("empty code for %s", name);
#endif
if (get32((uint32_t *)p) != 0x6bfa8001) if (get32((uint32_t *)p) != 0x6bfa8001)
error("ret expected at the end of %s", name); error("ret expected at the end of %s", name);
copy_size = p - p_start; copy_size = p - p_start;