summaryrefslogtreecommitdiff
path: root/emulators/gxemul/patches/patch-ac
blob: e49f1d69146fedccc57ff77e1f1ce995a493de50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ac,v 1.3 2009/07/18 18:43:56 tsutsui Exp $

A patch pulled from upstream trunk for NetBSD/hpcmips:
http://gxemul.svn.sourceforge.net/viewvc/gxemul?view=rev&revision=5472

--- src/devices/dev_vr41xx.c	2009/07/04 19:41:47
+++ src/devices/dev_vr41xx.c	2009/07/10 16:07:32
@@ -590,6 +590,7 @@
 			switch (relative_addr) {
 			case 0xc0:
 				odata = (tv.tv_sec & 1) << 15;
+				odata += (uint64_t)tv.tv_usec * 32768 / 1000000;
 				break;
 			case 0xc2:
 				odata = (tv.tv_sec >> 1) & 0xffff;