Skip to contentSkip to conversation

tci queue

GIT PULL Applied Stefan Weil 2 participants 3 messages Aug 26, 2015 – Aug 27, 2015

lore
Share & tools
lore
#0 lore raw

The following changes since commit 47c9dfee808f9455d732aea7c4390ad0972bbd84:

Merge remote-tracking branch 'remotes/kraxel/tags/pull-cve-2015-5225-20150826-1' into staging (2015-08-26 17:45:09 +0100)

are available in the git repository at:

git://qemu.weilnetz.de/qemu.git tags/pull-tci-20150826

for you to fetch changes up to a17d448274575efbfcc1c04ec2641a0afeb74e17:

exec-all: Translate TCI return addresses backwards too (2015-08-26 20:50:46 +0200)

----------------------------------------------------------------
tci patch queue

----------------------------------------------------------------
Peter Crosthwaite (1):
exec-all: Translate TCI return addresses backwards too

 include/exec/exec-all.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] exec-all: Translate TCI return addresses backwards too

From: Peter Crosthwaite <[email protected]>

This subtraction of return addresses applies directly to TCI as well as host-TCG. This fixes Linux boots for at least Microblaze, CRIS, ARM and SH4 when using TCI.

[sw: Removed indentation for preprocessor statement] [sw: The patch also fixes Linux boot for x86_64]

---
 include/exec/exec-all.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
include/exec/exec-all.h +1 -5
index fbc6dcb..83b9251 100644
@@ -357,11 +357,7 @@ extern uintptr_t tci_tb_ptr;
    to indicate the compressed mode; subtracting two works around that.  It
    is also the case that there are no host isas that contain a call insn
    smaller than 4 bytes, so we don't worry about special-casing this.  */
-#if defined(CONFIG_TCG_INTERPRETER)
-# define GETPC_ADJ   0
-#else
-# define GETPC_ADJ   2
-#endif
+#define GETPC_ADJ   2
 
 #define GETPC()  (GETRA() - GETPC_ADJ)
 
Signature · 1 line
2.1.4
#2 lore raw
In reply to Stefan Weil
Quoted 6 lines · Stefan Weil

The following changes since commit 47c9dfee808f9455d732aea7c4390ad0972bbd84:

Merge remote-tracking branch 'remotes/kraxel/tags/pull-cve-2015-5225-20150826-1' into staging (2015-08-26 17:45:09 +0100)

are available in the git repository at:

Quoted 9 lines

git://qemu.weilnetz.de/qemu.git tags/pull-tci-20150826

for you to fetch changes up to a17d448274575efbfcc1c04ec2641a0afeb74e17:

exec-all: Translate TCI return addresses backwards too (2015-08-26 20:50:46 +0200)

----------------------------------------------------------------
tci patch queue

Applied, thanks.

-- PMM