]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix compile error in cpu-ppc.hpp
authorSlava Pestov <slava@factorcode.org>
Fri, 8 May 2009 22:41:22 +0000 (17:41 -0500)
committerSlava Pestov <slava@factorcode.org>
Fri, 8 May 2009 22:41:22 +0000 (17:41 -0500)
vm/cpu-ppc.hpp

index b256b01c8b70f87a7cbcb4820713b3230904b233..6ae2cce27d488566593b79c52d79d4d619c22792 100755 (executable)
@@ -35,7 +35,7 @@ inline static void *get_call_target(cell return_address)
        check_call_site(return_address);
 
        cell insn = *(cell *)return_address;
-       cell unsigned_addr = (insn & B_MASK);
+       cell unsigned_addr = (insn & b_mask);
        fixnum signed_addr = (fixnum)(unsigned_addr << 6) >> 6;
        return (void *)(signed_addr + return_address);
 }
@@ -48,7 +48,7 @@ inline static void set_call_target(cell return_address, void *target)
        cell insn = *(cell *)return_address;
 
        fixnum relative_address = ((cell)target - return_address);
-       insn = ((insn & ~B_MASK) | (relative_address & B_MASK));
+       insn = ((insn & ~b_mask) | (relative_address & b_mask));
        *(cell *)return_address = insn;
 
        /* Flush the cache line containing the call we just patched */