Bugzilla – View All Attachments for
Bug 749
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Log In
[x]
|
Forgot Password
Login:
[x]
Attachment #480
Link to patch
text/html
2013-06-10 17:54:55 CEST
3.67 KB
no flags
Details
# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- E:\Test\java\Tests\gluegen-v2.0-rc9\src\java\com\jogamp\common\os\MachineDescription.java +++ O:\tmp\weichelt\MachineDescription.java @@ -58,7 +58,9 @@ /** {@link Platform.CPUType#X86_64} Little Endian MacOS */ X86_32_WINDOWS(Platform.CPUType.X86_32), /** {@link Platform.CPUType#X86_64} Little Endian Windows */ - X86_64_WINDOWS(Platform.CPUType.X86_64); + X86_64_WINDOWS(Platform.CPUType.X86_64), + /** {@link Platform.CPUType#SPARC_32} Big Endian Solaris */ + SPARC_32_SUNOS(Platform.CPUType.SPARC_32); public final Platform.CPUType cpu; @@ -74,6 +76,7 @@ private final static int[] size_x86_32_windows = { 4, 4, 4, 8, 12, 4, 4096 }; private final static int[] size_x86_64_unix = { 4, 8, 4, 8, 16, 8, 4096 }; private final static int[] size_x86_64_windows = { 4, 4, 4, 8, 16, 8, 4096 }; + private final static int[] size_sparc_32_sunos = { 4, 4, 4, 8, 16, 4, 8192 }; /* arch os i8, i16, i32, i64, int, long, float, doubl, ldoubl, ptr */ private final static int[] align_armeabi = { 1, 2, 4, 8, 4, 4, 4, 8, 8, 4 }; @@ -82,20 +85,23 @@ private final static int[] align_x86_32_windows = { 1, 2, 4, 8, 4, 4, 4, 8, 4, 4 }; private final static int[] align_x86_64_unix = { 1, 2, 4, 8, 4, 8, 4, 8, 16, 8 }; private final static int[] align_x86_64_windows = { 1, 2, 4, 8, 4, 4, 4, 8, 16, 8 }; + private final static int[] align_sparc_32_sunos = { 1, 2, 4, 8, 4, 4, 4, 8, 8, 4 }; public enum StaticConfig { /** {@link MachineDescription.ID#ARMle_EABI } */ - ARMle_EABI(ID.ARMle_EABI, true, size_armeabi, align_armeabi), + ARMle_EABI(ID.ARMle_EABI, true, size_armeabi, align_armeabi), /** {@link MachineDescription.ID#X86_32_UNIX } */ - X86_32_UNIX(ID.X86_32_UNIX, true, size_x86_32_unix, align_x86_32_unix), + X86_32_UNIX(ID.X86_32_UNIX, true, size_x86_32_unix, align_x86_32_unix), /** {@link MachineDescription.ID#X86_64_UNIX } */ - X86_64_UNIX(ID.X86_64_UNIX, true, size_x86_64_unix, align_x86_64_unix), + X86_64_UNIX(ID.X86_64_UNIX, true, size_x86_64_unix, align_x86_64_unix), /** {@link MachineDescription.ID#X86_32_MACOS } */ - X86_32_MACOS(ID.X86_32_MACOS, true, size_x86_32_macos, align_x86_32_macos), + X86_32_MACOS(ID.X86_32_MACOS, true, size_x86_32_macos, align_x86_32_macos), /** {@link MachineDescription.ID#X86_32_WINDOWS } */ - X86_32_WINDOWS(ID.X86_32_WINDOWS, true, size_x86_32_windows, align_x86_32_windows), + X86_32_WINDOWS(ID.X86_32_WINDOWS, true, size_x86_32_windows, align_x86_32_windows), /** {@link MachineDescription.ID#X86_64_WINDOWS } */ - X86_64_WINDOWS(ID.X86_64_WINDOWS, true, size_x86_64_windows, align_x86_64_windows); + X86_64_WINDOWS(ID.X86_64_WINDOWS, true, size_x86_64_windows, align_x86_64_windows), + /** {@link MachineDescription.ID#SPARC_32_SUNOS } */ + SPARC_32_SUNOS(ID.SPARC_32_SUNOS, false, size_sparc_32_sunos, align_sparc_32_sunos); public final ID id; public final MachineDescription md;
Attachment #481
link to patch
text/html
2013-06-10 17:56:05 CEST
1.00 KB
no flags
Details
# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- E:\Test\java\Tests\gluegen-v2.0-rc9\src\java\jogamp\common\os\MachineDescriptionRuntime.java +++ O:\tmp\weichelt\MachineDescriptionRuntime.java @@ -80,7 +80,12 @@ return StaticConfig.X86_32_WINDOWS; } else if(PlatformPropsImpl.OS_TYPE == Platform.OSType.MACOS) { return StaticConfig.X86_32_MACOS; + } else if (PlatformPropsImpl.OS_TYPE == Platform.OSType.SUNOS) { + if (PlatformPropsImpl.CPU_ARCH == Platform.CPUType.SPARC_32) { + return StaticConfig.SPARC_32_SUNOS; } + // TODO SPARCv9 description is missing + } return StaticConfig.X86_32_UNIX; } else { if(PlatformPropsImpl.OS_TYPE == Platform.OSType.WINDOWS) {