SHA256
10
0
forked from pool/zhu3d
Files
zhu3d/zhu3d-ppc.patch
Dmitry Roshchin c676eb58ef Accepting request 146610 from home:k0da:ppc
- use label number not a name for ppc asm call.
  fixes symbol `loop' is already defined (zhu3d-ppc.patch)

OBS-URL: https://build.opensuse.org/request/show/146610
OBS-URL: https://build.opensuse.org/package/show/science/zhu3d?expand=0&rev=46
2012-12-29 07:08:20 +00:00

20 lines
598 B
Diff

Index: zhu3d-4.2.4/src/tsc.h
===================================================================
--- zhu3d-4.2.4.orig/src/tsc.h
+++ zhu3d-4.2.4/src/tsc.h
@@ -134,12 +134,12 @@ inline TSC_UINT TSC::fetch() {
inline TSC_UINT TSC::fetch(void) {
unsigned int high, low, tmp;
__asm__ volatile(
- "loop: \n\t"
+ "0: \n\t"
"mftbu %0 \n\t"
"mftb %1 \n\t"
"mftbu %2 \n\t"
"cmpw %2,%0 \n\t"
- "bne loop \n\t"
+ "bne 0 \n\t"
: "=r"(high), "=r"(low), "=r"(tmp)
);
return ((TSC_UINT)high << 32) | low;