Skip to contentSkip to conversation

ppc-for-2.6 queue 20160419

GIT PULL Applied David Gibson 2 participants 3 messages Apr 19, 2016

lore
Share & tools
lore
#0 lore raw

The following changes since commit 92b674b62a1aec734280c9019cfb3b3745044b66:

Merge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-peter' into staging (2016-04-18 17:42:59 +0100)

are available in the git repository at:

git://github.com/dgibson/qemu.git tags/ppc-for-2.6-20160419

for you to fetch changes up to ed3d807b0a577c4f825b25f3281fe54ce89202db:

cuda: fix off-by-one error in SET_TIME command (2016-04-19 11:39:23 +1000)

----------------------------------------------------------------
ppc patch queueu for 2016-04-19

A single fix for a regression since 2.5. This should be the last ppc pull request for 2.6.

----------------------------------------------------------------
Aurelien Jarno (1):
cuda: fix off-by-one error in SET_TIME command

 hw/misc/macio/cuda.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
#1 lore raw

[Qemu-devel] [PULL 1/1] cuda: fix off-by-one error in SET_TIME command

From: Aurelien Jarno <[email protected]>

With the new framework the cuda_cmd_set_time command directly receive the data, without the command byte. Therefore the time is stored at in_data[0], not at in_data[1].

This fixes the "hwclock --systohc" command in a guest.

[this fixes a regression introduced by e647317 "cuda: port SET_TIME
command to new framework"]

---
 hw/misc/macio/cuda.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/misc/macio/cuda.c +2 -2
index c7472aa..f15f301 100644
@@ -685,8 +685,8 @@ static bool cuda_cmd_set_time(CUDAState *s,
         return false;
     }
 
-    ti = (((uint32_t)in_data[1]) << 24) + (((uint32_t)in_data[2]) << 16)
-         + (((uint32_t)in_data[3]) << 8) + in_data[4];
+    ti = (((uint32_t)in_data[0]) << 24) + (((uint32_t)in_data[1]) << 16)
+         + (((uint32_t)in_data[2]) << 8) + in_data[3];
     s->tick_offset = ti - (qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)
                            / NANOSECONDS_PER_SECOND);
     return true;
Signature · 1 line
2.5.5
#2 lore raw
In reply to David Gibson
Quoted 15 lines · David Gibson

The following changes since commit 92b674b62a1aec734280c9019cfb3b3745044b66:

Merge remote-tracking branch 'remotes/afaerber/tags/qom-cpu-for-peter' into staging (2016-04-18 17:42:59 +0100)

are available in the git repository at:

git://github.com/dgibson/qemu.git tags/ppc-for-2.6-20160419

for you to fetch changes up to ed3d807b0a577c4f825b25f3281fe54ce89202db:

cuda: fix off-by-one error in SET_TIME command (2016-04-19 11:39:23 +1000)

----------------------------------------------------------------
ppc patch queueu for 2016-04-19

Quoted 6 lines

A single fix for a regression since 2.5. This should be the last ppc pull request for 2.6.

----------------------------------------------------------------
Aurelien Jarno (1):
cuda: fix off-by-one error in SET_TIME command

Applied, thanks.

-- PMM