| Submitter | Stefan Weil |
|---|---|
| Date | Nov. 18, 2012, 8:48 p.m. |
| Message ID | <50A9498B.2040209@weilnetz.de> |
| Download | mbox | patch |
| Permalink | /patch/199908/ |
| State | Superseded |
| Headers | show |
Comments
On 2012-11-18 12:48, Stefan Weil wrote:
> This patch breaks the TCG interpreter. Here is a test run on Debian x86_64 (output shortened):
Nack. This is hiding some bug elsewhere in the tcg interpreter.
I disbelieve that the interpreter *requires* a pointer in the
low 32-bits of the x86_64 address space.
r~
Patch
diff --git a/exec.c b/exec.c index 8435de0..44e4504 100644 --- a/exec.c +++ b/exec.c @@ -564,7 +564,7 @@ static inline void *alloc_code_gen_buffer(void) /* Constrain the position of the buffer based on the host cpu. Note that these addresses are chosen in concert with the addresses assigned in the relevant linker script file. */ -# if defined(__PIE__) || defined(__PIC__) +# if !defined(CONFIG_TCG_INTERPRETER) && (defined(__PIE__) || defined(__PIC__)) /* Don't bother setting a preferred location if we're building a position-independent executable. We're more likely to get