summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [dev.power64] liblink: fix lost branch targetAustin Clements2014-10-271-2/+5
| | | | | | | | | | | A recent commit lost the branch target in the really-big-stack case of splitstack, causing an infinite loop stack preempt case. Revive the branch target. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/157790044
* [dev.power64] all: merge default into dev.power64Austin Clements2014-10-27116-199/+37383
|\ | | | | | | | | | | | | LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/164110043
| * [dev.power64] liblink: power64 fixes and ports of changesAustin Clements2014-10-272-126/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | Ports of platform-specific changes that happened on default after dev.power64 forked (fixes for c2go, wrapper math fixes, moved stackguard field, stackguard1 support, precise stacks). Bug fixes (missing AMOVW in instruction table, correct unsigned 32-bit remainder). LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/164920044
| * [dev.power64] cc: 8-byte align argument size on power64Austin Clements2014-10-271-1/+1
| | | | | | | | | | | | | | LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/163370043
| * [dev.power64] liblink: print line numbers in disassembly on power64Austin Clements2014-10-241-3/+3
| | | | | | | | | | | | | | | | | | Matching other platforms. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/161320043
| * [dev.power64] runtime: fix SigaltstackT definition for power64leDave Cheney2014-10-232-4/+4
| | | | | | | | | | | | | | | | | | Also updated defs3_linux.go but had to manually edit defs_linux_power64le.h. Will regenerate the file when cgo is working natively on ppc64. LGTM=austin R=rsc, austin CC=golang-codereviews https://codereview.appspot.com/158360043
| * [dev.power64] runtime: fix early GC of Defer objectsAustin Clements2014-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | go_bootstrap was panicking during runtime initialization (under runtime.main) because Defer objects were being prematurely GC'd. This happened because of an incorrect change to runtime?unrollgcprog_m to make it endian-agnostic during the conversion of runtime bitmaps to byte arrays. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/161960044
| * [dev.power64] all: merge default into dev.power64Austin Clements2014-10-22116-198/+37406
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings dev.power64 up-to-date with the current tip of default. go_bootstrap is still panicking with a bad defer when initializing the runtime (even on amd64). LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/152570049
| | * [dev.power64] runtime: Fix broken merge of noasm.goAustin Clements2014-10-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The earlier dev.power64 merge missed the port of runtime/noasm.goc to runtime/noasm_arm.go. This CL fixes this by moving noasm_arm.go to noasm.go and adding a +build to share the file between arm and power64. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/158350043
| | * build: merge the great pkg/ rename into dev.power64Austin Clements2014-10-222194-712/+259
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also removes pkg/runtime/traceback_lr.c, which was ported to Go in an earlier commit and then moved to runtime/traceback.go. Reviewer: rsc@golang.org rsc: LGTM
| | * \ [dev.power64] build: merge default into dev.power64Austin Clements2014-10-22795-20671/+24195
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/160200044
| | * | | [dev.power64] liblink: recognize add instruction as adjusting SPRuss Cox2014-08-182-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/128360043 Committer: Shenghou Ma <minux@golang.org>
| | * | | [dev.power64] liblink: fix g->panicwrap update code generationShenghou Ma2014-08-151-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://codereview.appspot.com/123400043
| | * | | [dev.power64] runtime: fix usleep not to smash saved LRRuss Cox2014-08-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/130760043
| | * | | [dev.power64] runtime: make all bitmaps arrays of bytesRuss Cox2014-08-157-39/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "simpler faster garbage collector" is full of little-endian assumptions. Instead of trying to correct all the mistakes, just give in and make everything use bytes. LGTM=minux R=minux CC=dvyukov, golang-codereviews https://codereview.appspot.com/124400043
| | * | | [dev.power64] runtime: define page size on power64le systems to be 64kDave Cheney2014-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes issue 8495. CL 128260043 updated the definition of syscall.GetPageSize to report 64k for power64 and power64le. This CL cleans up the last place where the page size was defined as 4k. LGTM=minux R=rsc, minux CC=golang-codereviews https://codereview.appspot.com/123520043
| | * | | [dev.power64] runtime: fix RuntimeGogoBytes on power64Russ Cox2014-08-142-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/130030043
| | * | | [dev.power64] cmd/ld, runtime: detect, fix nosplit overflowsRuss Cox2014-08-143-23/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/121690043
| | * | | [dev.power64] syscall: fix power64 page sizeRuss Cox2014-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/128260043
| | * | | [dev.power64] reflect: fix test not to hang even if TrySend liesRuss Cox2014-08-141-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/124360043
| | * | | [dev.power64] cmd/dist: tell goc2c that power64 is 64-bit systemRuss Cox2014-08-141-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/125300043
| | * | | [dev.power64] cmd/9g: correct floating point comparisonRuss Cox2014-08-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/129210043
| | * | | [dev.power64] runtime: replace getproccount with simpler codeRuss Cox2014-08-141-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This runs once. There is no need for inscrutable algorithms. Also it doesn't compile correctly with 9c. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/130000043
| | * | | [dev.power64] cmd/9c: fix constant truncation in optimizerRuss Cox2014-08-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is what broke getpopcount, but that code had it coming. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/130000044
| | * | | [dev.power64] runtime: don't fault on runtime.procyield, just returnShenghou Ma2014-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=dave, rsc R=rsc, iant, dave CC=golang-codereviews https://codereview.appspot.com/128230044 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] syscall: re-generate using cgo compiled by gc, fix test failuresShenghou Ma2014-08-148-57/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=dave, rsc R=rsc, iant, dave CC=golang-codereviews https://codereview.appspot.com/127320043 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] runtime: add power64/power64le as supported arch to gcinfo_test.goShenghou Ma2014-08-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/122560043 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] runtime: fix time.nowShenghou Ma2014-08-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was reading a uint64 field with a MOVW, which has endian issues. LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/122550043 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] reflect: now we find one big endian machineShenghou Ma2014-08-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/124350043 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] liblink: fix $large(SP) for floating point load/storeRuss Cox2014-08-141-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes test/cmplxdivide. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/128190045
| | * | | [dev.power64] liblink: fix handling of $nnn(reg)Russ Cox2014-08-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/126180043
| | * | | [dev.power64] liblink: fix handling of MOVD with large constantsRuss Cox2014-08-132-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=golang-codereviews, minux CC=golang-codereviews https://codereview.appspot.com/122540043 Committer: Shenghou Ma <minux@golang.org>
| | * | | [dev.power64] runtime: fix reflect.callRuss Cox2014-08-131-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code to copy out the results was incorrect. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/122530043
| | * | | [dev.power64] runtime: fix C prototype for cmallocgcRuss Cox2014-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/122520043
| | * | | [dev.power64] cmd/9g: fix floating-point comparison for NaNRuss Cox2014-08-131-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/127300043
| | * | | [dev.power64] cmd/9g: add missing breakShenghou Ma2014-08-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/125260043 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] runtime: fix buildShenghou Ma2014-08-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/128180044 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] runtime: fix newstackcallRuss Cox2014-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | moreframesize is a uint32, not a uint64. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/124310043
| | * | | [dev.power64] cmd/9l, math/big, runtime, syscall: fixes for power64Russ Cox2014-08-137-19/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the machine I'm using, the hardware page size seems to be 64 kB. Make ELF rounding and mmap quantum 64 kB to match. Error numbers returned from kernel are positive; do not negate. Implement stubs for math/big. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/124300043
| | * | | [dev.power64] cmd/9g: do not ignore move instructions even if from and to ↵Shenghou Ma2014-08-132-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are samaddr() Those moves might be significant (e.g. narrowing or widening): on Power64, we don't distinguish between MOVWD and MOVW. This fixes divmode.go and bug447.go. LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/125200043 Committer: Russ Cox <rsc@golang.org>
| | * | | [dev.power64] runtime: switch back to old initial stack size, and disable ↵Shenghou Ma2014-08-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | debugging messages for rewindmorestack LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/129850044
| | * | | [dev.power64] liblink: rewrite MOVD $con(Ra), Rb into ADD $con, Ra, Rb; fix ↵Shenghou Ma2014-08-131-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stack split prologue LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/129050043
| | * | | [dev.power64] cmd/9g: use loops to do memmove in sgen()Shenghou Ma2014-08-131-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/128130044
| | * | | [dev.power64] cmd/cc: round argsize to multiples of wordsize on power64Shenghou Ma2014-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/121640043
| | * | | [dev.power64] runtime: fix morestackShenghou Ma2014-08-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Must not save LR. LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/129040044
| | * | | [dev.power64] cmd/9g: introduce ginscon2 for CMP/CMPU, use ginscon to ADD ↵Shenghou Ma2014-08-123-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | constants LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/125170043
| | * | | [dev.power64] runtime: disable GC and use a larger default stackShenghou Ma2014-08-123-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/128120043
| | * | | [dev.power64] cmd/9g: clear p->reg for ATEXTShenghou Ma2014-08-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/125150043
| | * | | [dev.power64] cmd/gc: disable magic multiply optimizations for nowShenghou Ma2014-08-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/126110043
| | * | | [dev.power64] liblink: disable stack split for nowShenghou Ma2014-08-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LGTM=rsc R=rsc, iant CC=golang-codereviews https://codereview.appspot.com/122460043