forked from pool/zhu3d
- 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
20 lines
598 B
Diff
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;
|