Browse Source

work_restart should only be changed by cgminer.c now

nfactor-troky
Luke Dashjr 13 years ago
parent
commit
d8ef28069a
  1. 1
      driver-icarus.c
  2. 2
      sha256_4way.c
  3. 2
      sha256_altivec_4way.c
  4. 2
      sha256_cryptopp.c
  5. 2
      sha256_generic.c
  6. 2
      sha256_sse2_amd64.c
  7. 2
      sha256_sse2_i386.c
  8. 2
      sha256_sse4_amd64.c
  9. 2
      sha256_via.c

1
driver-icarus.c

@ -277,7 +277,6 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work,
__maybe_unused uint64_t max_nonce) __maybe_unused uint64_t max_nonce)
{ {
volatile unsigned long *wr = &work_restart[thr->id].restart; volatile unsigned long *wr = &work_restart[thr->id].restart;
*wr = 0;
struct cgpu_info *icarus; struct cgpu_info *icarus;
int fd; int fd;

2
sha256_4way.c

@ -111,8 +111,6 @@ bool ScanHash_4WaySSE2(int thr_id, const unsigned char *pmidstate,
pdata += 64; pdata += 64;
work_restart[thr_id].restart = 0;
for (;;) for (;;)
{ {
unsigned int thash[9][NPAR] __attribute__((aligned(128))); unsigned int thash[9][NPAR] __attribute__((aligned(128)));

2
sha256_altivec_4way.c

@ -84,8 +84,6 @@ bool ScanHash_altivec_4way(int thr_id, const unsigned char *pmidstate,
pdata += 64; pdata += 64;
work_restart[thr_id].restart = 0;
for (;;) for (;;)
{ {
unsigned int thash[9][NPAR] __attribute__((aligned(128))); unsigned int thash[9][NPAR] __attribute__((aligned(128)));

2
sha256_cryptopp.c

@ -589,8 +589,6 @@ bool scanhash_asm32(int thr_id, const unsigned char *midstate,
data += 64; data += 64;
work_restart[thr_id].restart = 0;
while (1) { while (1) {
n++; n++;
*nonce = n; *nonce = n;

2
sha256_generic.c

@ -251,8 +251,6 @@ bool scanhash_c(int thr_id, const unsigned char *midstate, unsigned char *data,
data += 64; data += 64;
work_restart[thr_id].restart = 0;
while (1) { while (1) {
n++; n++;
*nonce = n; *nonce = n;

2
sha256_sse2_amd64.c

@ -65,8 +65,6 @@ bool scanhash_sse2_64(int thr_id, const unsigned char *pmidstate,
pdata += 64; pdata += 64;
work_restart[thr_id].restart = 0;
/* For debugging */ /* For debugging */
union { union {
__m128i m; __m128i m;

2
sha256_sse2_i386.c

@ -65,8 +65,6 @@ bool scanhash_sse2_32(int thr_id, const unsigned char *pmidstate,
pdata += 64; pdata += 64;
work_restart[thr_id].restart = 0;
/* Message expansion */ /* Message expansion */
memcpy(m_midstate, pmidstate, sizeof(m_midstate)); memcpy(m_midstate, pmidstate, sizeof(m_midstate));
memcpy(m_w, pdata, sizeof(m_w)); /* The 2nd half of the data */ memcpy(m_w, pdata, sizeof(m_w)); /* The 2nd half of the data */

2
sha256_sse4_amd64.c

@ -62,8 +62,6 @@ bool scanhash_sse4_64(int thr_id, const unsigned char *pmidstate,
pdata += 64; pdata += 64;
work_restart[thr_id].restart = 0;
/* For debugging */ /* For debugging */
union { union {
__m128i m; __m128i m;

2
sha256_via.c

@ -35,8 +35,6 @@ bool scanhash_via(int thr_id, const unsigned char *pmidstate,
unsigned long stat_ctr = 0; unsigned long stat_ctr = 0;
int i; int i;
work_restart[thr_id].restart = 0;
/* bitcoin gives us big endian input, but via wants LE, /* bitcoin gives us big endian input, but via wants LE,
* so we reverse the swapping bitcoin has already done (extra work) * so we reverse the swapping bitcoin has already done (extra work)
* in order to permit the hardware to swap everything * in order to permit the hardware to swap everything

Loading…
Cancel
Save