projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce shrink header writing
[yaffs2.git]
/
direct
/
ynorsim.c
diff --git
a/direct/ynorsim.c
b/direct/ynorsim.c
index f18eac03c3c9f524ea4ce573b3c793f64b9a824d..0c691a6a58c4418ee377ed4e8d76f16dbce535a0 100644
(file)
--- a/
direct/ynorsim.c
+++ b/
direct/ynorsim.c
@@
-10,7
+10,7
@@
#include <unistd.h>
#include <time.h>
#include <unistd.h>
#include <time.h>
-#define YNORSIM_FNAME "
ynorsimdata
"
+#define YNORSIM_FNAME "
emfile-nor
"
/* Set YNORSIM_BIT_CHANGES to a a value from 1..30 to
*simulate bit flipping as the programming happens.
/* Set YNORSIM_BIT_CHANGES to a a value from 1..30 to
*simulate bit flipping as the programming happens.
@@
-74,6
+74,8
@@
static int initialised = 0;
static int remaining_ops;
static int nops_so_far;
static int remaining_ops;
static int nops_so_far;
+int ops_multiplier = 500;
+
static void ynorsim_MaybePowerFail(void)
{
static void ynorsim_MaybePowerFail(void)
{
@@
-94,7
+96,7
@@
static void ynorsim_Ready(void)
return;
srand(random_seed);
remaining_ops = 1000000000;
return;
srand(random_seed);
remaining_ops = 1000000000;
- remaining_ops = (rand() % 10000) *
4000
* YNORSIM_BIT_CHANGES;
+ remaining_ops = (rand() % 10000) *
ops_multiplier
* YNORSIM_BIT_CHANGES;
ynorsim_RestoreImage();
}
ynorsim_RestoreImage();
}